@akrmontoya/sample
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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

Package Sidebar

Install

npm i @akrmontoya/sample

Weekly Downloads

1

Version

0.0.2

License

none

Unpacked Size

19.5 kB

Total Files

23

Last publish

Collaborators

  • akrmontoya