0.0.10 • Published 3 years ago

@sevenlure-vas/vasdatawarninglevel v0.0.10

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

vas-data-warning-level

build

LoopBack

Installation

Install VasDataWarningLevelComponent using npm;

$ npm install vas-data-warning-level

Basic Use

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

import {VasDataWarningLevelComponent, VasDataWarningLevelComponentOptions, DEFAULT_VAS_DATA_WARNING_LEVEL_OPTIONS} from 'vas-data-warning-level';
// ...
export class MyApplication extends BootMixin(ServiceMixin(RepositoryMixin(RestApplication))) {
  constructor(options: ApplicationConfig = {}) {
    const opts: VasDataWarningLevelComponentOptions = DEFAULT_VAS_DATA_WARNING_LEVEL_OPTIONS;
    this.configure(VasDataWarningLevelComponentBindings.COMPONENT).to(opts);
      // Put the configuration options here
    });
    this.component(VasDataWarningLevelComponent);
    // ...
  }
  // ...
}