Angular Interview Questions:
1. Lifecycle methods in angular?
2. Need of routing in angular application
3. Different types of pipes
4. Format date using pipes
5. Can we create a custom pipe
6. What is the use of router outlet
7. Is it possible to use multiple router outlet
8. What is the use of annotation of @ViewChild
9. Difference between Observables and Promises
10. What is the use of template
11. What is the use of shared modules
12. What is providers in angular
13. Diff b/w Constructor and Oninit
14. How do we invoke backend services using angular
15. What are the types of data binding
16. What is DI and how angular handling DI
17. What is lazy loading how it can be achieved
18. What is content Projection?
19. How can we pass data between components?
20. Diff attribute and structural directives?
21. What is ng-container
22. What is ng-template
23. Can we use multiple interceptor in single project
24. What is angular.json file
25. Explain Observables in depth
26. Why we use RXJS and how to use it
27. React vs Angular
28. What is subject and type to it explain in depth
29. What is Async pipe, state its advantage and disadvantage
30. Can we use multiple NgModules?
31. What exactly happens with lazy loading?
32. What RxJs do you know?
33. What are guards in Angular?
34. How to use Authgaurds in Angular?
35. AOT vs JIT
36. Type of forms in Angular
37. How does angular loads script dynamically? Like Google Maps
38. Diff b/w forChild and forRoot?
39. How can we deploy our application?
40. Change Detector?
a. All Angular apps are made up of a hierarchical tree of components. At runtime, Angular
creates a separate change detector class for every component in the tree, which then
eventually forms a hierarchy of change detectors similar to the hierarchy tree of
components.
b. Whenever change detection is triggered, Angular walks down this tree of change
detectors to determine if any of them have reported changes.
c. The change detection cycle is always performed once for every detected change and
starts from the root change detector and goes all the way down in a sequential fashion.
This sequential design choice is nice because it updates the model in a predictable way
since we know component data can only come from its parent.
d. The change detectors provide a way to keep track of the component’s previous and
current states as well as its structure in order to report changes to Angular.
e. If Angular gets the report from a change detector, it instructs the corresponding
component to re-render and update the DOM accordingly.
f.