0.0.2 • Published 3 years ago

@panosc-portal/panosc-common-ts v0.0.2

Weekly downloads
51
License
-
Repository
github
Last release
3 years ago

panosc-common-ts

LoopBack

Installation

Install PanoscCommonTsComponent using npm;

$ [npm install | yarn add] panosc-common-ts

Basic Use

Configure and load PanoscCommonTsComponent in the application constructor as shown below.

import {PanoscCommonTsComponent, PanoscCommonTsComponentOptions, DEFAULT_PANOSC_COMMON_TS_OPTIONS} from 'panosc-common-ts';
// ...
export class MyApplication extends BootMixin(ServiceMixin(RepositoryMixin(RestApplication))) {
  constructor(options: ApplicationConfig = {}) {
    const opts: PanoscCommonTsComponentOptions = DEFAULT_PANOSC_COMMON_TS_OPTIONS;
    this.configure(PanoscCommonTsComponentBindings.COMPONENT).to(opts);
      // Put the configuration options here
    });
    this.component(PanoscCommonTsComponent);
    // ...
  }
  // ...
}