This Lesson is for PRO Members

Subscribe today and get access to all lessons! Plus direct HD download for offline use, enhances transcripts, member comment forums, and iTunes "podcast" RSS feed. Level up your skills now!

Unlock This Lesson

Already subscribed? Sign In

Overwrite a Service in a Component Subtree in Angular

Angular's hierarchical dependency allows us to overwrite a global service with a different class implementation for just a given sub-tree of the entire component tree of your application.

In this lesson we will take a look how this works, by registering the service on the component's child injector.

Please take a moment to tell your friends:

You must be a PRO Member to view code