@ContentChild and @ContentChildren decorators are useful to get access to DOM elements that are projected using ng-content directive(Content Projection)
We need to use @ContentChild and @ContentChildren decorator to work with the elements inside the “ng-content” directive.
Content Projection is one of the most useful feature of angular that helps you to build reusable components.
There are different ways through which we can communicate across the component
Learn about these topics which I have used in this video
@Input decorator: • Communicate from Paren...
@Ouput decorator: • Communicate from Child...
@ViewChild and @ViewChildren: • @ViewChild/@ViewChildr...
Checkout other important topics :
RxJS Subject: • RxJS Subject | What is...
RxJS BehaviorSubject : • BehaviorSubject | Beha...
RxJS Replay Subject: • ReplaySubject | Replay...
Angular Subject and BehaviorSubjet: • Subject and BehaviorSu...
Promises vs Observables: • Promises vs Observable...
Promises vs Observables shorts: • Promise vs Observable ...
#angular #angularTutorial #nishasingla
12 сен 2024