Angular Web Framework Cheat Sheet 2026
The 30 highest-yield Angular Web Framework facts, distilled from real exam questions. Print it, save it as a PDF, or study it here — free, no sign-up.
50 questions
60 min time limit
70% to pass
- In a web browser, how would you display dates? → Use the Angular pipe class in the template
- Which Angular strategy checks only the current component and its ancestors when an input reference changes? → OnPush
- Which Angular signal API creates a writable reactive value introduced in Angular 16+? → signal()
- Which applications must be installed before you can download Angular? → Node.js
- Which Angular feature delays loading a module until a user navigates to its associated route? → Lazy loading
- What is the purpose of the computed() function in Angular Signals? → Derive a read-only value from one or more signals
- What methods would you use to test your NativeScript Angular app? → Run it in a web-browser
- What is the purpose of the Validators class? → Provides built-in validation functions like required, minLength, maxLength, and pattern
- What does 'providedIn: root' mean in an @Injectable() decorator? → The service is available application-wide as a singleton through the root injector
- What is the @Output() decorator and EventEmitter used for? → To emit custom events from a child component to its parent
- What are structural directives in Angular? → Directives like *ngIf and *ngFor that change the DOM layout by adding or removing elements
- How do you create a custom validator in Angular? → By writing a function that returns null for valid or an error object for invalid input
- In the Flux/Redux pattern used by NgRx, what is the single source of truth for application state? → Store
- In a web application, how would you create custom event handling? → Through a combination of Outputs Decorators and EventEmitters
- What is the purpose of the Angular CLI command `ng build --configuration production`? → Compiles the app with optimizations like minification and tree-shaking
- What does calling markForCheck() on a component using OnPush change detection do? → Marks the component and its ancestors to be checked on the next cycle
- How do you pass query string parameters to an HttpClient.get() request in Angular? → Use the params option with an HttpParams object or plain object
- Which HttpClient request option causes it to return the full HTTP response including status code and headers? → observe: 'response'
- How do you make an HTTP request that bypasses all registered HttpInterceptors? → Inject HttpBackend directly and use it to dispatch the request
- In Angular's default change detection, what triggers the detection cycle? → Async events like DOM events, timers, and HTTP responses via Zone.js
- In an Angular application, where would you put routing URL information? → Use ngStyle from within the template
- Which Angular directive efficiently re-renders only changed items in a list by tracking identity? → *ngFor with trackBy
- What is a service in Angular? → A class with a focused purpose that provides shared functionality across components
- What does the on() helper inside createReducer() do? → Registers a case handler for a specific action type
- What is the difference between a Subject and an Observable? → A Subject is both an Observable and an Observer — it can emit values and be subscribed to
- What is the difference between a service and a component in Angular? → Components manage UI and views; services contain reusable business logic and data access
- What NgRx operator is used inside createEffect() to handle errors without killing the effect stream? → catchError with EMPTY or of()
- What ethical standards guide Angular professionals in their work? → Integrity, objectivity, confidentiality, and professional competence in all engagements
- In a FormControl, how would you implement objects? → By specifying start and tags
- What does the pipe() method do in RxJS? → Chains multiple operators together to transform, filter, or combine Observable streams
Turn these facts into recall: