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

Опубликовано: 28 Сентябрь 2024
на канале: Monsterlessons Academy
20,800
735

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.

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

► CHECK MY COURSES - https://monsterlessons-academy.com/co...

FOLLOW ME
► TWITTER -   / monster_lessons  

REFERENCES
► Source code - https://github.com/monsterlessonsacad...