Go ProSign in

This Lesson is for 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

    Juri StrumpflohnerJuri Strumpflohner

    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.

    You must be a Member to view code