Learning Partner

Persistent Angular Interview Questions for 5+ years

Shared question set for 5+ years of experience. Topics and wording follow the supplied notes; these are questions, not official company guidance.

  1. You fetched user data in one component, but another component also needs it. How will you avoid calling the API again?
  2. A user submits a form (Create User). How will you send data to the API, update the UI after success, show a success/error message, and will you store the response in state or not?
  3. After login, where will you store the JWT token: LocalStorage or NgRx Store?
  4. How will you restore the token after a page refresh?
  5. You are managing a large list (1000+ items). Why would you use NgRx Entity? What problem does it solve?
  6. You have an API for update user. How many actions will you create and why?
  7. Why do we use selectors instead of directly accessing state?
  8. Have you created any custom directive in your project? Explain it.
  9. You want to call multiple APIs based on previous API responses. How will you handle this, and where will you write this logic: service file or effects file?
  10. Have you worked on lazy loading? Explain it and write code for it.
  11. Explain the change detection cycle.
  12. Explain lifecycle hooks.
  13. How do you implement routing? Write code for it.
  14. How do you test your application?
  15. You created a form using Reactive Forms. How do you implement validations? How will you apply custom validation? Which built-in validations have you used?
  16. How do you deploy your code?
  17. Which Agile methodologies do you follow? (They also asked about daily stand-ups, code review before PR merge, sprint demos, client feedback and retrospectives.)
  18. Explain the use of object destructuring and the spread operator.
  19. How do you achieve a deep copy?
  20. Are you aware of the new features from Angular 17+? Write a Signal and change its value on a button click.

Browse Angular question sets