Angular ngContainer vs Angular ng Template vs Angular ngContent vs Angular ngTemplateOutlet

preview_player
Показать описание
In this video we will learn 4 important Angular directives. Angular ngContainer, Angular ngTemplate, Angular ngContent and Angular ngTemplateOutlet. We need them for different things but people are mixing them a lot. We use Angular ngContainer to avoid creating additional DOM nodes. We need Angular ngContent to provide markup from parent component to child component. We use Angular ng template to create and pass templates to other directives and if we need to render ng template on it's own we use Angular ngTemplateOutlet. You will also learn how to use ngTemplateOutlet context to pass data to the template.

MOST POPULAR COURSES

SERVICES THAT I'M USING

CONNECT WITH ME!

REFERENCES

TIMESTAMPS
0:00 Introduction
0:18 ngTemplate
4:10 ngContainer
6:29 ngContent
7:54 ngTemplateOutlet

This video is NOT sponsored. Some product links are affiliate links which means if you buy something I'll receive a small commission.
Рекомендации по теме
Комментарии
Автор

Masterful Monsterlessons!! Great examples! Been using Angular for 3+ years but still learning so much on this channel. Thank you Sir!

zoxx
Автор

Thanks very much. your content are very concise and easy to understand.

ganeshphadake
Автор

Great material, thanks, i didn't know templateoutlet

haroldpepete
Автор

Thanks a lot. I had always wanted to learn about these.

octavian
Автор

Great to see lot of good content recommending to me ❤

MadhavanSPR
Автор

Helpful video, Thank you for uploading.

nagendradevara
Автор

I love your videos. I would be very interested in you made an advanced Angular tutorial (e.g. how re-rendering works, concepts like the ones in this video, optimizations, etc.). Also, would be great to have an rxjs tutorial. I think those would sell great :)

adodragicevic
Автор

Extremely well explained. Please tell me the extension which you use to auto complete.

floydfernandes
Автор

That is one useful video :) Great work! Do you thinking about extending explanation of ngContent by for example named ones? Thanks to it one can create crazy re-usable components :)

PiYouFree
Автор

I noticed you are using vim. I like the autocomplete, on the html as well. Any chance you can share the tools you are using? Great content btw.

nadflores
Автор

Thanks a lot for the excellent explanation. Why don't you club all angular related concept sequentially in a single folder .

sitanshupanda
Автор

The video content is very good, but you speak without making a break. It sounds very monotonous.

Asaloy