Top 50 Angular Interview Questions
Please find below the top 50 most asked Angular interview questions. These questions must help you in boosting your self-confidence before you appear in the interview. These questions are applicable to all versions of Angular from Angular 2 to Angular 7.
- What is Angular?
- How Angular is different from AngularJS?
- What is TypeScript?
- Explain the lifecycle hooks of Angular.
- What are a few building blocks of Angular?
- What is a Component in Angular?
- What is Directive.
- What are the different types of Directives?
- What is Service?
- What are Providers in Angular?
- In how many ways we can register providers in Angular?
- How does DI work in Angular?
- What is @Injectable decorator?
- What are Configuration Decorators?
- Name a few decorators.
- What is Module in Angular?
- What is feature module in Angular?
- Use of Imports, Declarations, Providers in Angular Module?
- Use of forRoot()?
- How will you make the service singleton for lazy-loaded modules?
- How does DI work in case of lazy loaded modules?
- Difference between Component & Directive?
- How does Angular App bootstrap itself?
- What is Main.ts file?
- How to bootstrap Angular App with a module other than App Module?
- What does bootstrap module do?
- What is BrowserModule in Angular?
- How index.html understand component selectors?
- How to share components between lazy-loaded modules?
- How to pass OAuth token in Angular?
- How to prevent few requests to not go through the interceptor?
- How to centralized exception handling?
- How @ViewChild can improve performance?
- BehaviourSubject vs Observable?
- What is ErrorHandler class in Angular?
- JIT vs AOT?
- Angular vs React?
- What is Observable?
- Promise & Observable?
- What is RxJS?
- Name a few RxJS operators.
- Explain these RxJS Operators - map(), catch(), filter(), flatMap() etc.
- What are Pipes?
- What is a template variable in Angular?
- What are pipes?
- What are some inbuilt pipes & how do pass arguments in them?
- How to create a custom pipe?
- What are input & output properties?
- What is Change Detection?
- How can we improve the performance of an Angular application?