SekibOmazic / angular2-playground

MIT License
71 stars 7 forks source link

DI into child components #1

Closed KenavR closed 9 years ago

KenavR commented 9 years ago

I imported the service to the root component (hello.js) and added it to the services. In the child components you can then inject them into the constructor (@Inject).

Hope that helps.