Advanced Angular MCQs with answers
37 questions tagged Advanced Angular, each with the correct answer and an explanation. Page 2 of 2.
- Which Angular feature replaces constructor injection in functional APIs?
- What does trackBy function improve in *ngFor?
- Which operator is best for sequential HTTP calls?
- What is the main benefit of standalone components?
- Which directive is used to dynamically load templates?
- Which lifecycle hook is used to clean up subscriptions?
- What does providedIn: 'root' do?
- Which Angular feature helps in reducing bundle size?
- What is a pure pipe?
- Which strategy allows preloading lazy-loaded modules?
- Which guard prevents loading of lazy-loaded modules?
- What does ViewEncapsulation.ShadowDom do?
- Which decorator is used to make a class injectable?
- Which RxJS operator is used to cancel previous HTTP calls?
- What does the async pipe do?
- Which Angular lifecycle hook is called after content projection?
- What is the main purpose of ChangeDetectionStrategy.OnPush?