Advanced Angular MCQs with answers
37 questions tagged Advanced Angular, each with the correct answer and an explanation. Page 1 of 2.
- Which API is used to dynamically create components?
- Which Angular feature supports tree shaking?
- Which operator is used to handle errors in RxJS?
- Which lifecycle hook is called when an input property changes?
- What does the router-outlet directive do?
- Which Angular feature enables hydration in SSR?
- What does the inject() function replace?
- Which Angular testing utility creates a test environment?
- Which operator shares a single subscription among multiple subscribers?
- What is the purpose of NgZone.runOutsideAngular()?
- Which guard is used to prevent navigation away from a route?
- Which Angular API enables manual change detection?
- Which directive allows projecting external content?
- Which Angular form type is immutable?
- What does ViewChild return by default?
- Which RxJS operator combines multiple observables and emits once all complete?
- Which lifecycle hook runs after every change detection cycle?
- What does ChangeDetectorRef.detach() do?
- Which Angular feature allows signals-based reactivity?
- What is the purpose of HttpInterceptor?