DEV Community

Stephen Cooper
Stephen Cooper

Posted on • Originally published at indepth.dev

ngTemplateOutlet: The secret to customisation

ngTemplateOutlet is a powerful tool for creating customisable components. It is used by many Angular libraries to enable users to provide custom templates. But how can we do this for our own components?

In the following article we demonstrate how to use ngTemplateOutlet, along with ngTemplateOutletContext, to make a component completely customisable.

Continue reading at indepth.dev.

inDepth.dev

Top comments (2)

Collapse
 
vitale232 profile image
Andrew Vitale

Nice! I came across your AngularConnect talk using this example a while ago, and was really interested in the talk. I personally prefer articles for learning, so this will be very useful! Thanks!

Collapse
 
scooperdev profile image
Stephen Cooper

I know what you mean! Glad I finally managed to get this done 🙂