Create Elements from Template Elements with ngTemplateOutlet in Angular

Share this video with your friends

Send Tweet

ngTemplateOutlet is a directive that simplifies creating elements from template elements. This allows you to create simple, reusable templates then generate elements with custom data whenever you need them.

tresmo
tresmo
~ 6 years ago

I think the <template></template> tag should be <ng-template></ng-template> now.

Juan Ortiz
Juan Ortiz
~ 3 years ago

What is the difference between template and ng-template? I see that template exist outside of angular https://developer.mozilla.org/es/docs/Web/HTML/Element/template, so whats functionality adds ng-template?