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.
Top comments (2)
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!
I know what you mean! Glad I finally managed to get this done 🙂