Question Bank
3705 approved questions from the community
Protractor is an end-to-end testing framework for Angular applications.
Multiple interceptors are supported in Angular and execute in the order they are provided.
Angular provides the DomSanitizer service to bypass security and trust specific values.
Angular treats all values as untrusted by default to prevent XSS attacks.
What are the three phases of AOT compilation?
NgUpgrade allows mixing AngularJS and Angular components in the same application.
Angular 8 and later support dynamic imports for lazy loading with the import() statement.
You can detect route changes in Angular by subscribing to router events.
Custom elements bootstrap automatically when added to the DOM.
Angular elements are Angular components packaged as custom elements.
Angular has two injector hierarchies: ModuleInjector and ElementInjector.
What is the main difference between Promise and Observable?
What is RxJS?
Which service would you use to make HTTP requests in Angular?
Arrow functions can be used in AOT compilation without any restrictions.
Lazy-loading modules can improve application performance by loading code only when needed.
RouterLink is used to navigate to routes in Angular templates.
Angular Router enables building Single Page Applications with multiple views.
The async pipe automatically unsubscribes from observables when the component is destroyed.
An Observable only begins publishing values when someone subscribes to it.