@panosc-portal/panosc-common-ts
v0.0.2
Published
panosc common ts
Downloads
5
Readme
panosc-common-ts
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);
// ...
}
// ...
}