-
Component lifecycle
- What are components?
- What are lifecycle hooks available?
- What is the difference between constructor and ngOnInit?
- What are the differences between Component and Directive?
-
View encapsulation
- What is ViewEncapsulation and how many ways are there do to do it in Angular?
- What is ngdeep?
-
Change detection
- Which are the methods of NgZone used to control change detection?
- What are the possible data change scenarios for change detection?
- What is zone?
- What are the ways to trigger change detection in Angular?
- What is NoopZone?
-
Component interaction
- Is it possible to do aliasing for inputs and outputs?
- What is ng-content and its purpose?
- How to set ngFor and ngIf on the same element?
- What is ng-template?
- How to send and receive information in components?