Angular @ContentChild() and @ContentChildren() | How to access the projected components

preview_player
Показать описание
Share, Support, Subscribe!!

In this video we will basically try to use @ContentChild and @ContentChildren.

We will be creating a sample angular application.
We will be having the required components in order to get the demo.
Unlike the ViewChild and ViewChildren that are used to access the template element and component. The ContentChild and ContentChildren will be used to access the projected components from the host component.
The elements/components that are coming to ng-content element will be access via ContentChild or ContentChildren.
We will try to access the single component and multiple components by projecting the single and multiple components to the projected component from the host component.
We will be using the same QueryList in order to access the multiple components.

#Angular #programming #dotnet #csharp #interview #QuestionsAndAnswers #coding #tutorial #learning #javascript #js #html #css #angularjs #git #github #gitbash #source #versioncontrol #versoning
#ngContent #viewChild #viewChildren #ContentChild #ContentChildren
Рекомендации по теме