Other Companies (Name Not Shared) Angular Interview Questions for 3-9 years
Shared question set for 3-9 years of experience, Scenario-based. Topics and wording follow the supplied notes; these are questions, not official company guidance.
- Handling dynamic API responses: the API sometimes returns additional fields (for example state along with id, name and city). How would you design the UI to handle such changing response structures?
- API-driven forms: an API tells you how many fields the form should have, the field types (text, checkbox, dropdown) and validations. How would you design a dynamic form in Angular based on this response?
- Displaying dynamic product attributes: product responses have different keys per product type (for example ram/camera for Mobile and type/material for T-Shirt). How would you display this data in the UI?
- Active category filter: when a user clicks a category button, that button should show an active state. How would you implement this in Angular?
- Given a paragraph of text, how would you check whether a specific word exists in it?
- Unsaved form navigation warning: if a user tries to navigate away from a half-filled form, show "You have unsaved changes. Are you sure you want to leave?" How would you implement this?
- If a user clicks the submit button multiple times, duplicate orders are created. How would you prevent this?
- A table with 5000+ rows is making the UI slow. What Angular strategies would you use to improve performance?
- A user applies filters on a table and opens a record's detail page. When the user comes back, the previous filters should still be applied. How would you implement this?
- If a user logs out from one tab, the other open tab should also detect the logout and redirect to login. How would you handle this scenario?