0.0.2 • Published 3 years ago

@akrmontoya/sample v0.0.2

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

sample

LoopBack

Installation

Install SampleComponent using npm;

$ [npm install | yarn add] sample

Basic Use

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

import {SampleComponent, SampleComponentOptions, DEFAULT_SAMPLE_OPTIONS} from 'sample';
// ...
export class MyApplication extends BootMixin(ServiceMixin(RepositoryMixin(RestApplication))) {
  constructor(options: ApplicationConfig = {}) {
    const opts: SampleComponentOptions = DEFAULT_SAMPLE_OPTIONS;
    this.configure(SampleComponentBindings.COMPONENT).to(opts);
      // Put the configuration options here
    });
    this.component(SampleComponent);
    // ...
  }
  // ...
}