Angular Interview Questions


  1. What is the advantage of angular , why do we need ?
  2. What is decorators ?
  3. Can we create custom decorators if so how ?
  4. What are all the ways to communicate data from ts to html and html to ts ? How to bind the data ?
  5. How many types are binding are there ?
  6. What is interpolation ?
  7. How to bind data from html to ts ?
  8. How to communicate between components? what are all the ways we have to communicate ?
  9. Can we communicate between components using ngOnchange ?
  10. Explain life cycle hooks ? And explain each of it ?
  11. What is element ref ?
  12. What is template ref ?
  13. What is directives? And how many types are there ?
  14. How to create custom directive ?
  15. What is hostlistner ?
  16. What is host binding ?
  17. What is the life cycle of directives ?
  18. Difference between component and directive ?
  19. What is pipe ?
  20. Difference between pure and impure pipe ?
  21. How to create custom pipe? Which method we are implementing in custom pipe ?
  22. Difference between template and reactive form ?
  23. What is form control ?
  24. What is form group ?
  25. What are the validators we have in form ?
  26. What is services ?
  27. What is the design pattern we are using in angular ?
  28. Explain singleton , why we are using it ?
  29. What is dependency injection? Explain
  30. How to create a service as singleton ?
  31. What are injectors ?
  32. How many injector hierarchies ?
  33. Steps to create a service ?
  34. How many ways we can inject the service in component ?
  35. What is observable ?
  36. Why we need observable ?
  37. Can we render observable values without subscribing it ?
  38. What is rxjs ?
  39. Difference between promise and observable ?
  40. How many callback functions observer object holds ?
  41. What is routing ?
  42. What is router outlet ?
  43. Can we use multiple router oultets in same html ? If so how?
  44. How to pass query params in routing ?
  45. What is eagerloading ?
  46. What is lazy loading ?
  47. How to implement lazy loading ?
  48. How to dynamically create the navigation url and navigate to it ?
  49. What are all the routing life cycle events ?
  50. Difference between pathMatch :full and prefix ?
  51. What is interceptors ?
  52. Why we need it ?
  53. How to get the full response from the server using http client ?
  54. What is http client ?
  55. How to set the headers in http request ?
  56. What is routing auth guards ? Why we need to use it ?
  57. How many types of Auth guards we have and how to implement it ?
  58. How to avoid creating html ,css , spec file while generating a component . What is the command ?
  59. What is angular universal ?
  60. What is localisation? How to implement it ?
  61. what will happen if we don’t unsubscribe the observables ? What error we will face? And Memory leak error ?
  62. What is @viewchild and @viewchildren ?
  63. What is content projection ?
  64. What is ng-content ?
  65. Difference between ngif and hidden ?
  66. What is ngFor ?
  67. What are the operators we have in rxjs ?
  68. What are all the creation operators we have ?
  69. What are the pipe operators we have ?
  70. What is accessibility ?
  71. What are the compilation types we have ?
  72. What is AOT ?
  73. How to control AOT compilation ?
  74. How to create elements ?
  75. How to dynamically render the component ?
  76. What is entryComponent ?
  77. In which life cycle method , @viewchild and @viewchildren need to use ?
  78. What is viewContainerRef ?
  79. What is interface ?
  80. What is ng-template ?
  81. Can we use two directives in same element ?
  82. What is tree shaking in angular ?
  83. What is digest cycle ?
  84. What is change detection ?
  85. How many statergies we have in change detection ?
WhatsApp-Credo-Systemz