Examples of DI in action in an Angular view hierarchy
$ yarn
$ yarn start
- Loosely covers concepts described in the Angular guide - Hierarchical Dependency Injection
- Uncomment
providers: []andviewProviders: []in theapp.module.ts,app.component.tsandchild.component.tsto see the effect of different dependency providing strategies. - Copy inspectors from
README.inspectors.htmlto their matching locations in the component templates to see what dependencies they are provided. - Uncomment
viewContainer.insertlines inchild.component.tsto seeViewContainerRefview manipulation examples.