shared-repo
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

shared-repo

LoopBack

Installation

Install SharedRepoComponent using npm;

$ [npm install | yarn add] shared-repo

Basic Use

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

import {SharedRepoComponent, SharedRepoComponentOptions, DEFAULT_SHARED_REPO_OPTIONS} from 'shared-repo';
// ...
export class MyApplication extends BootMixin(ServiceMixin(RepositoryMixin(RestApplication))) {
  constructor(options: ApplicationConfig = {}) {
    const opts: SharedRepoComponentOptions = DEFAULT_SHARED_REPO_OPTIONS;
    this.configure(SharedRepoComponentBindings.COMPONENT).to(opts);
      // Put the configuration options here
    });
    this.component(SharedRepoComponent);
    // ...
  }
  // ...
}

Package Sidebar

Install

npm i shared-repo

Weekly Downloads

0

Version

0.0.1

License

none

Unpacked Size

25.5 kB

Total Files

39

Last publish

Collaborators

  • kathirvelangles01