Back to Prep Library
Category Blueprint
Angular Interview Library
Components, dependency injection & RxJS patterns
Questions101
Views60.2k
Upvotes3.9k
Filter
Question Catalog
(101 visible)Angular· Frontend
Explain the new Control Flow (@if, @for, @switch) and how it compares to structural directives.
93080
easy
Angular· Frontend
What is the difference between the constructor and ngOnInit?
89547
easy
Angular· Frontend
Explain the difference between FormGroup.patchValue() and FormGroup.setValue().
83225
easy
Angular· Frontend
What are template reference variables?
63168
easy
Angular· Frontend
How do you configure dynamic base href in Angular builds for different environments?
62325
easy
Angular· Frontend
What are components and modules in Angular?
5099
easy
Angular· Frontend
What is Angular and how does it differ from AngularJS?
44942
easy
Angular· Frontend
What is the purpose of ngOnChanges and how does it capture changes in @Input properties?
42851
easy
Angular· Frontend
How do child components emit events to parents?
36219
easy
Angular· Frontend
What does the Angular CLI provide?
33631
easy
Angular· Frontend
What are standalone components?
21746
easy
Angular· Frontend
What is the fixture.detectChanges() method in Angular testing, and when should you call it?
12534
easy
Angular· Frontend
What are the types of data binding in Angular?
816
easy
Angular· Frontend
What is the difference between @ViewChildren and @ViewChild?
1.2k41
medium
Angular· Frontend
What is a route resolver and when is it useful?
1.2k1
medium
Angular· Frontend
Explain how to perform unit testing on components with Signals using TestBed.
1.1k19
medium
Angular· Frontend
How do you handle SSR hydration mismatch errors using ngSkipHydration?
1.1k64
medium
Angular· Frontend
What are route guards in Angular?
1.0k7
medium
Angular· Frontend
What is standard content projection vs. Multi-Slot Content Projection?
1.0k52
medium
Angular· Frontend
What is the APP_INITIALIZER token and how is it used to load configuration at startup?
1.0k41
medium
Angular· Frontend
Explain what output() and outputFromObservable() are in modern Angular and how they differ from @Output().
97864
medium
Angular· Frontend
How do you create a custom validator in reactive forms?
94442
medium
Angular· Frontend
How does catchError work in RxJS, and how do you return a fallback value?
93863
medium
Angular· Frontend
What are Angular lifecycle hooks?
9351
medium
Angular· Frontend
What is the role of NG_VALUE_ACCESSOR in a custom component?
87952
medium
Angular· Frontend
What is the difference between computed() signals and standard method/getter calls in templates?
84056
medium
Angular· Frontend
What is the role of NgRx Effects, and why do we separate side effects from reducers?
84066
medium
Angular· Frontend
What is a directive and what are the types?
83749
medium
Angular· Frontend
How do you handle dynamic validation where one form field's validator depends on another field's value?
80838
medium
Angular· Frontend
How do you mock services in Angular unit tests using Jasmine/Jest spies?
79852
medium
Angular· Frontend
What are @ViewChild and @ContentChild?
78878
medium
Angular· Frontend
What is ComponentFixtureAutoDetect and how does it affect unit tests?
77359
medium
Angular· Frontend
What is the async pipe and why is it useful?
75851
medium
Angular· Frontend
Explain the difference between Shadow DOM, Emulated, and None View Encapsulation with compile output.
71569
medium
Angular· Frontend
What do @HostListener and @HostBinding do?
69140
medium
Angular· Frontend
How do you optimize initial bundle size using Route Preloading with custom strategies?
6908
medium
Angular· Frontend
What is the difference between reactive and template-driven forms?
61930
medium
Angular· Frontend
What is trackBy in ngFor and why use it?
56474
medium
Angular· Frontend
What is the purpose of updateOn in Reactive Forms?
5480
medium
Angular· Frontend
What are functional Route Guards, and how do they differ from class-based guards?
54368
medium
Angular· Frontend
How do you handle errors and retries globally with interceptors?
53136
medium
Angular· Frontend
What is the difference between component styling using :host, :host-context, and ::ng-deep?
52717
medium
Angular· Frontend
What is the difference between Observables and Promises?
52465
medium
Angular· Frontend
What are ng-container and ng-template?
52428
medium
Angular· Frontend
What is ngTemplateOutlet?
49752
medium
Angular· Frontend
How do you pass data between sibling components that don't have a direct parent-child relationship?
47039
medium
Angular· Frontend
What are functional HTTP Interceptors in modern Angular, and how do you register them?
46560
medium
Angular· Frontend
How does Dependency Injection work in Angular?
45219
medium
Angular· Frontend
What is the difference between constructor-based DI and the inject() function?
44634
medium
Angular· Frontend
How does two-way binding work under the hood?
42776
medium
Angular· Frontend
How do you read route parameters?
41526
medium
Angular· Frontend
What is the difference between take(1) and first() operators in RxJS?
4102
medium
Angular· Frontend
How do you bootstrap a standalone Angular application?
40512
medium
Angular· Frontend
What is provideHttpClient(withInterceptors([...])) and how does it replace legacy HTTP interceptor providing?
39821
medium
Angular· Frontend
What is a service and why use it?
36564
medium
Angular· Frontend
What is a FormArray?
33945
medium
Angular· Frontend
How do you handle internationalization (i18n) in Angular?
33563
medium
Angular· Frontend
What is an HTTP interceptor?
31467
medium
Angular· Frontend
What are pipes in Angular?
31035
medium
Angular· Frontend
What is the difference between providing a service in root vs in a component?
28835
medium
Angular· Frontend
What is the customElements schema in Angular and when do you need to use it?
2221
medium
Angular· Frontend
How do you optimize images in Angular using NgOptimizedImage?
18464
medium
Angular· Frontend
How does routing and lazy loading work in Angular?
1569
medium
Angular· Frontend
What is content projection and ng-content?
8150
medium
Angular· Frontend
What is the difference between AOT and JIT compilation?
1.2k0
hard
Angular· Frontend
What are security vulnerabilities in Angular apps, and how does DomSanitizer prevent XSS?
1.2k38
hard
Angular· Frontend
What are Deferrable Views (@defer) and how do they work in Angular 17+?
1.2k52
hard
Angular· Frontend
What does ChangeDetectorRef do?
1.1k13
hard
Angular· Frontend
How do you handle micro-frontend architecture in Angular using Module Federation?
1.1k71
hard
Angular· Frontend
What are signal inputs and model() in modern Angular?
1.0k49
hard
Angular· Frontend
What is the purpose of the KeyValueDiffers and IterableDiffers services?
1.0k72
hard
Angular· Frontend
How do you build a custom form control by implementing the ControlValueAccessor interface?
99441
hard
Angular· Frontend
How does change detection work in Angular?
96924
hard
Angular· Frontend
How does compilation work under the hood in Ivy?
95638
hard
Angular· Frontend
What is an InjectionToken?
87438
hard
Angular· Frontend
What is Zone.js, how does it monkey-patch browser APIs, and how do you build a Zoneless Angular application?
81421
hard
Angular· Frontend
What is Angular Universal / SSR?
72940
hard
Angular· Frontend
What is the difference between ElementRef, TemplateRef, and ViewContainerRef?
69139
hard
Angular· Frontend
What is NgRx?
6751
hard
Angular· Frontend
Explain the shareReplay operator in RxJS and how it prevents duplicate HTTP requests.
54244
hard
Angular· Frontend
What is the difference between switchMap, mergeMap, concatMap, and exhaustMap?
48756
hard
Angular· Frontend
What is ViewEncapsulation in Angular?
48518
hard
Angular· Frontend
What is the difference between forkJoin, zip, combineLatest, and withLatestFrom?
47269
hard
Angular· Frontend
How do you dynamically create components?
45447
hard
Angular· Frontend
How do you avoid memory leaks from subscriptions?
44569
hard
Angular· Frontend
What is the difference between useClass, useValue, useFactory, and useExisting?
44136
hard
Angular· Frontend
What is the difference between afterRender and afterNextRender lifecycle hooks?
42323
hard
Angular· Frontend
What is runInInjectionContext and when do you need to use it?
41569
hard
Angular· Frontend
What are Angular Signals?
38422
hard
Angular· Frontend
What is the difference between Subject, BehaviorSubject, and ReplaySubject?
35052
hard
Angular· Frontend
Why use Renderer2 instead of direct DOM access?
33826
hard
Angular· Frontend
How do you implement custom routing strategies by extending RouteReuseStrategy?
32949
hard
Angular· Frontend
What are preloading strategies?
29136
hard
Angular· Frontend
What is the critical render path and how does Angular handle font and style optimization?
2772
hard
Angular· Frontend
How does Angular's dependency resolution search work using @Self(), @SkipSelf(), @Optional(), and @Host()?
25010
hard
Angular· Frontend
What is NgZone and when do you run outside Angular?
24246
hard
Angular· Frontend
What is the difference between fakeAsync, tick, and waitForAsync in Angular unit tests?
22445
hard
Angular· Frontend
How does Hydration work in modern Angular SSR, and what is non-destructive hydration?
17842
hard
Angular· Frontend
What is the effect() function in Angular Signals, and when should you NOT use it?
10319
hard
Angular· Frontend
Explain how you can bridge Signals and RxJS observables using toSignal() and toObservable().
10016
hard
Angular· Frontend
What are the differences between State Management libraries in Angular?
4119
hard
Difficulty Distribution
Easy13 (13%)
Medium51 (50%)
Hard37 (37%)
Tested Topics
#performance#di#rxjs#forms#routing#signals#testing#lifecycle
Study Guide
Study change detection zones (OnPush), standalone component structures, direct RxJS pipe pipelines, and dependency injection hierarchy.