ng-content and ng-template for Angular 2+ explained

I recently wrote an angular 2+ wizard using ng-content to add “wizard-card’s” into a wizard wrapper.

I wish I had read this blog post before I started. It clearly explains how ng-content works. Including advanced use cases and common pitfalls. Good stuff.

https://medium.com/claritydesignsystem/ng-content-the-hidden-docs-96a29d70d11b

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.