@bytesnbinary/core
Installation
Install BytesnbinaryCoreComponent using npm
;
$ [npm install | yarn add] @bytesnbinary/core
Basic Use
Configure and load BytesnbinaryCoreComponent in the application constructor as shown below.
import {BytesnbinaryCoreComponent, BytesnbinaryCoreComponentOptions, DEFAULT_BYTESNBINARY_CORE_OPTIONS} from '@bytesnbinary/core';
// ...
export class MyApplication extends BootMixin(ServiceMixin(RepositoryMixin(RestApplication))) {
constructor(options: ApplicationConfig = {}) {
const opts: BytesnbinaryCoreComponentOptions = DEFAULT_BYTESNBINARY_CORE_OPTIONS;
this.configure(BytesnbinaryCoreComponentBindings.COMPONENT).to(opts);
// Put the configuration options here
});
this.component(BytesnbinaryCoreComponent);
// ...
}
// ...
}