1.0.2 • Published 2 years ago
@say-developer/core v1.0.2
core
Installation
Install CoreComponent using npm
;
$ [npm install | yarn add] core
Basic Use
Configure and load CoreComponent in the application constructor as shown below.
import {CoreComponent, CoreComponentOptions, DEFAULT_CORE_OPTIONS} from 'core';
// ...
export class MyApplication extends BootMixin(ServiceMixin(RepositoryMixin(RestApplication))) {
constructor(options: ApplicationConfig = {}) {
const opts: CoreComponentOptions = DEFAULT_CORE_OPTIONS;
this.configure(CoreComponentBindings.COMPONENT).to(opts);
// Put the configuration options here
});
this.component(CoreComponent);
// ...
}
// ...
}