All fields

“Angular Signals” in Information Technology

30 questions across 1 technology.

Information Technology

30 questions in 1 technology

#QuestionTechnologyTopicLevel
1Why did Angular introduce signals, given that RxJS observables already existed for managing changing values? Angular › Angular SignalsAngularAngular SignalsBeginner
2What is a signal in Angular and how does it help manage a component's data? Angular › Angular SignalsAngularAngular SignalsBeginner
3What is a computed signal, and how does it automatically stay in sync with the signals it depends on? Angular › Angular SignalsAngularAngular SignalsIntermediate
4How do you use the effect function with signals to run code whenever a signal's value changes? Angular › Angular SignalsAngularAngular SignalsIntermediate
5How do signal inputs work in modern Angular components, and how are they different from the traditional Input decorator? Angular › Angular SignalsAngularAngular SignalsAdvanced
6What is hydration in the context of Angular server side rendering, and why is it necessary? Angular › Server-Side Rendering with Angular UniversalAngularServer-Side Rendering with Angular UniversalIntermediate
7How do you properly type a signal in Angular using TypeScript? Angular › TypeScript with AngularAngularTypeScript with AngularIntermediate
8How do you decide between using NgRx, signals, or a simple service for managing state in an Angular app? Angular › NgRx State ManagementAngularNgRx State ManagementBeginner
9What is change detection in Angular and why does it exist? Angular › Change DetectionAngularChange DetectionBeginner
10Why is the constructor generally not the right place to fetch data or perform complex setup in an Angular component? Angular › Lifecycle HooksAngularLifecycle HooksBeginner
11What is NgRx and what problem does it solve for larger Angular apps? Angular › NgRx State ManagementAngularNgRx State ManagementBeginner
12What is state management in an Angular app? Angular › State ManagementAngularState ManagementBeginner
13What is Zone.js, and what role does it traditionally play in Angular applications? Angular › Zoneless Change Detection & Zone.jsAngularZoneless Change Detection & Zone.jsBeginner
14Why is Angular investing in zoneless change detection as the future direction for the framework? Angular › Zoneless Change Detection & Zone.jsAngularZoneless Change Detection & Zone.jsBeginner
15How would you manually trigger change detection in Angular when needed, such as after code that runs outside Angular's normal tracking? Angular › Change DetectionAngularChange DetectionIntermediate
16How does the OnPush change detection strategy improve performance in a large Angular application? Angular › Performance & Lazy LoadingAngularPerformance & Lazy LoadingIntermediate
17How do you read a dynamic value from the URL, such as a product id, in an Angular route? Angular › RoutingAngularRoutingIntermediate
18How do signals simplify state management compared to relying entirely on RxJS observables? Angular › State ManagementAngularState ManagementIntermediate
19What does zoneless change detection mean, and how does Angular know when to update the screen without Zone.js? Angular › Zoneless Change Detection & Zone.jsAngularZoneless Change Detection & Zone.jsIntermediate
20How does Angular's newer zoneless change detection improve on the traditional Zone.js based approach? Angular › Change DetectionAngularChange DetectionAdvanced
21How would you migrate an existing Zone.js based Angular application toward zoneless change detection safely? Angular › Zoneless Change Detection & Zone.jsAngularZoneless Change Detection & Zone.jsAdvanced
22What is an observable in RxJS, and how is it different from a promise? Angular › RxJS & ObservablesAngularRxJS & ObservablesBeginner
23What is the difference between the Default and OnPush change detection strategies? Angular › Change DetectionAngularChange DetectionIntermediate
24Why does mutating an array or object directly sometimes fail to trigger a component update when using OnPush? Angular › Change DetectionAngularChange DetectionIntermediate
25What is the difference between ngOnChanges and ngOnInit, and when does each run? Angular › Lifecycle HooksAngularLifecycle HooksIntermediate
26How does the newer signal based viewChild function differ from the traditional ViewChild decorator? Angular › Template Reference Variables & ViewChildAngularTemplate Reference Variables & ViewChildIntermediate
27How would you test that clicking a button in a component triggers the expected behavior? Angular › Testing with Jasmine & KarmaAngularTesting with Jasmine & KarmaIntermediate
28How do you pass data into a component from its parent using an input property? Angular › Components & TemplatesAngularComponents & TemplatesAdvanced
29How would you create a custom two way binding for your own component's custom property? Angular › Data BindingAngularData BindingAdvanced
30How does the useFactory provider option let you create a service with more complex setup logic? Angular › Dependency Injection Providers & Injection TokensAngularDependency Injection Providers & Injection TokensAdvanced