This lesson is for PRO members.

Unlock this lesson NOW!
Already subscribed? sign in

Create Elements from Template Elements with ngTemplateOutlet in Angular 2

2:38 Angular 2 lesson by

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.

Get the Code Now
click to level up

egghead.io comment guidelines

Avatar
egghead.io

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.

Avatar
Yannick

Hello,
is there a way to create and use dynamic templates from a string, like in this snippet (but in a simpler way...) :
http://plnkr.co/edit/L2LsXGWAOZHOopuddQX4?p=info
Thanks

In reply to egghead.io
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?