Angular Interview Questions
- What is the advantage of angular , why do we need ?
- What is decorators ?
- Can we create custom decorators if so how ?
- What are all the ways to communicate data from ts to html and html to ts ? How to bind the data ?
- How many types are binding are there ?
- What is interpolation ?
- How to bind data from html to ts ?
- How to communicate between components? what are all the ways we have to communicate ?
- Can we communicate between components using ngOnchange ?
- Explain life cycle hooks ? And explain each of it ?
- What is element ref ?
- What is template ref ?
- What is directives? And how many types are there ?
- How to create custom directive ?
- What is hostlistner ?
- What is host binding ?
- What is the life cycle of directives ?
- Difference between component and directive ?
- What is pipe ?
- Difference between pure and impure pipe ?
- How to create custom pipe? Which method we are implementing in custom pipe ?
- Difference between template and reactive form ?
- What is form control ?
- What is form group ?
- What are the validators we have in form ?
- What is services ?
- What is the design pattern we are using in angular ?
- Explain singleton , why we are using it ?
- What is dependency injection? Explain
- How to create a service as singleton ?
- What are injectors ?
- How many injector hierarchies ?
- Steps to create a service ?
- How many ways we can inject the service in component ?
- What is observable ?
- Why we need observable ?
- Can we render observable values without subscribing it ?
- What is rxjs ?
- Difference between promise and observable ?
- How many callback functions observer object holds ?
- What is routing ?
- What is router outlet ?
- Can we use multiple router oultets in same html ? If so how?
- How to pass query params in routing ?
- What is eagerloading ?
- What is lazy loading ?
- How to implement lazy loading ?
- How to dynamically create the navigation url and navigate to it ?
- What are all the routing life cycle events ?
- Difference between pathMatch :full and prefix ?
- What is interceptors ?
- Why we need it ?
- How to get the full response from the server using http client ?
- What is http client ?
- How to set the headers in http request ?
- What is routing auth guards ? Why we need to use it ?
- How many types of Auth guards we have and how to implement it ?
- How to avoid creating html ,css , spec file while generating a component . What is the command ?
- What is angular universal ?
- What is localisation? How to implement it ?
- what will happen if we don’t unsubscribe the observables ? What error we will face? And Memory leak error ?
- What is @viewchild and @viewchildren ?
- What is content projection ?
- What is ng-content ?
- Difference between ngif and hidden ?
- What is ngFor ?
- What are the operators we have in rxjs ?
- What are all the creation operators we have ?
- What are the pipe operators we have ?
- What is accessibility ?
- What are the compilation types we have ?
- What is AOT ?
- How to control AOT compilation ?
- How to create elements ?
- How to dynamically render the component ?
- What is entryComponent ?
- In which life cycle method , @viewchild and @viewchildren need to use ?
- What is viewContainerRef ?
- What is interface ?
- What is ng-template ?
- Can we use two directives in same element ?
- What is tree shaking in angular ?
- What is digest cycle ?
- What is change detection ?
- How many statergies we have in change detection ?