Angular Flashcards
✅ Explain Hot and cold observables
N/A
✅ 8 building blocks
Module, Components, Templates, Directives, Data-binding, Decorators, Services, Routing
✅ What is ChangeDetection?
Default, onPush, ChangeDetectionRef
✅ Observable Callback methods (3)
next, error, complete
✅ Important things the router does? (4)
URL Structure Lazy loading Guards Redirects / Navigates
✅ Event binding vs Property Binding vs Interpolation
N/A
✅ What is ngZone?
runOutsideAngular run
✅ What is an interceptor?
next.handle()
✅ JIT vs AOT
N/A
✅ Types of directives (2)
Structural and Directives
✅ Component LifeCycle hook
ngOnChanges ngOnInit ngDoCheck ngAfterContentInit ngAfterContentChecked ngAfterViewInit ngAfterViewChecked ngOnDestroy
✅ Explain @ViewChild
to find first HTML element matching the selector
✅ Differences: Observables vs Promises (4)
Multiple values - Single value Lazy - Not Lazy Cancellable vs Not cancellable Observable has rxjs operators.
✅ Custom Two-way binding VS ngModel
ngModel for native elements. custom two-way binding: eg. Input - size Output - sizeChanged
✅ Types of subjects
Subject BehaviorSubject ReplaySubject AsyncSubject