1.0.2 • Published 2 years ago

@say-developer/core v1.0.2

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

core

LoopBack

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);
    // ...
  }
  // ...
}
1.0.2

2 years ago

1.0.1

2 years ago