Other Companies (Name Not Shared) Angular Interview Questions for 4-12 years
Shared question set for 4-12 years of experience, Scenario-based. Topics and wording follow the supplied notes; these are questions, not official company guidance.
- A user clicks the Submit button multiple times before the API responds. How will you prevent duplicate API calls?
- You are implementing a search box where an API is called on every keystroke. How will you cancel the previous request and display only the latest result?
- Your JWT token expires while the user is working. How will you refresh the token automatically without asking the user to log in again?
- If every API in your application requires common logic like token handling, caching, and global error handling, how would you design a reusable HTTP layer?
- A user fills a long form but accidentally refreshes the page or navigates away. How would you automatically save the draft and warn them about unsaved changes?
- Your table displays over 100,000 records. When would you choose server-side pagination/filtering instead of client-side, and why?
- Your application contains insurance/banking forms where fields change based on the selected product. How would you build a dynamic form from a JSON configuration instead of hardcoding controls?
- A dropdown selection determines which fields should appear, disappear, become mandatory, or become disabled. How would you implement this cleanly?
- Your application has Admin, Manager, and Employee roles. How would you generate menus dynamically based on permissions?
- Users should not only have buttons hidden but also be prevented from accessing routes directly. How would you implement role-based access control?
- The business wants users to receive notifications instantly without refreshing the page. How would you implement real-time updates?
- Your page displays thousands of records, and scrolling becomes slow. How would you improve rendering performance?
- Users expect previously selected rows in a table to remain selected even after refresh or navigation. How would you persist and restore the selection?
- Every page should automatically display a breadcrumb like Home > Orders > Order Details without hardcoding it. How would you build a reusable breadcrumb component?