@frontendart/smdb-api-mock
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

SmdbApiMock

This library contains a mock version of the SmdbApiService from the smdb-api library.

Using the library

If you want to use the library in your project, you have to import the SmdbApiMockModule through its .forRoot() method like below:

import {SmdbApiMockModule} from '@frontendart/smdb-api-mock';

@NgModule({
  declarations: [AppComponent],
  imports:      [   
    SmdbApiMockModule.forRoot(),
  ],
  providers:    [],
  bootstrap:    [SmdbAppComponent]
})
export class AppModule {
}

After importing the SmdbApiMockModule, you will be able to inject the SmdbApiService service as usual:

@Component()
export class SampleComponent {

  constructor(private smdbApi: SmdbApiService) { }

Build

Run ng build smdb-api-mock to build the project. Be sure you are in the project main directory. The build artifacts will be stored in the dist/ directory.

Package Sidebar

Install

npm i @frontendart/smdb-api-mock

Weekly Downloads

6

Version

0.1.1

License

MIT

Unpacked Size

1.15 MB

Total Files

30

Last publish

Collaborators

  • daniel.hegedus
  • lilles