ngTemplateOutlet is WAY more useful than I realised @JoshuaMorony
ngTemplateOutlet is WAY more useful than I realised  @JoshuaMorony
Uploaded August 2022 | Updated September 2026, 2 weeks ago
My modern Angular course: 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: ionicstart.com

GOOD source code: github.com/joshuamorony/ng-template-outlet-example
BAD source code: github.com/joshuamorony/without-template-outlet-example
Stephen Cooper: 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: eliteionic.com
- Follow me on Twitter: twitter.com/joshuamorony
ngTemplateOutlet is WAY more useful than I realisedA workflow for complex open source contributionsRefactoring my ugliest code with signal view queriesThis new Angular primitive might actually be a viable alternative to RxJSA visual guide to switchMap and higher order observablesWhy does building an Angular app with INJECTION TOKENS feel so good?!The most compelling reason to learn Angular in 2023The easy way to GIT like the prosThe mindset you need for a DECLARATIVE code refactorShould we really NEVER subscribe in Angular apps?How I published the WORST Angular component libraryArchitecting a (boring) real life project with Nx
Joshua Morony |

ngTemplateOutlet is WAY more useful than I realised

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER