MENU

Fun & Interesting

ngTemplateOutlet is WAY more useful than I realised

Joshua Morony 79,102 lượt xem 2 years ago
Video Not Working? Fix It Now

My modern Angular course: https://angularstart.com/

In this video, we explore a situation where *ngTemplateOutlet can turn an impossibly messy component into something beautiful. We will discuss the role of ng-template, how we can use *ngTemplateOutlet to display them, and why just using components and inputs isn't viable.

Get weekly content and tips exclusive to my newsletter: https://mobirony.ck.page/4a331b9076

Learn Angular with Ionic: https://ionicstart.com

GOOD source code: https://github.com/joshuamorony/ng-template-outlet-example
BAD source code: https://github.com/joshuamorony/without-template-outlet-example
Stephen Cooper: https://www.youtube.com/watch?v=2SnVxPeJdwE

0:00 Introduction
0:45 What is ng-template?
1:46 What is ngTemplateOutlet?
4:05 API of the custom table
6:21 Using ngTemplateOutlet
10:06 Implementation without ngTemplateOutlet
15:13 Conclusion

#angular

- More tutorials: https://eliteionic.com
- Follow me on Twitter: https://twitter.com/joshuamorony

Comment