ngx-dummy-package
v1.0.0
Published
Seed for AoT compatible Angular package.
Downloads
2
Readme
Angular2+ Dummy Package
Seed for AoT compatible Angular package.
Usage
Import module:
import { DummyModule } from 'ngx-dummy-package';
@NgModule({
...
imports: [
DummyModule.forRoot({value: 'my value'})
],
...
})
export class AppModule {}
Inject service:
import { DummyService } from 'ngx-dummy-package';
...
export class MyComponent implements OnInit {
constructor(
private dummy: DummyService) {
}
ngOnInit(): void {
this.dummy.do().subscribe(val => console.log(val));
}
}