0.1.1 • Published 5 years ago
@frontendart/smdb-api-mock v0.1.1
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.
0.1.1
5 years ago