Go ProSign in
Hide playlist

    Provide and Share Values with Angular 2 Dependency Injection

    TypeScript is used heavily as we build up our application, but TypeScript isn’t required. If you want to Inject a Service without using TypeScript, you’ll need to understand the @Inject decorator. The @Inject decorator also allows you to provide any value or object that you need to share throughout your application without having to create a service.

    You must be a Member to view code