1×
Become a member
to unlock all features

Create egghead account to access 5000+ tutorials and resources from expert developers.

Create account
Autoplay

    Declare a Template within a Template using `ng-template` in Angular

    angularAngular
    5 - 6

    In this lesson we learn about ng-template, an Angular component that allows us to declare some piece of Angular template. We will explore how to use @ViewChild to grab the template from within our Angular component and how we can then pass it along accordingly.