Other Companies (Name Not Shared) Angular Interview Questions for 5-9 years
Shared question set for 5-9 years of experience, Scenario-based. Topics and wording follow the supplied notes; these are questions, not official company guidance.
- Role-based dynamic menu: how will you design a menu where one route can be accessible by multiple roles and the UI renders based on the logged-in role? (A menu with title, route and roles array, filtered dynamically.)
- Stepper form across multiple components: each step is a separate component. How will you maintain a single Reactive Form instance? Will you use a parent component or a shared service?
- How will you implement role-based guards and UI-level access using custom directives?
- Role switching inside the app: a user logs in once but can switch roles (Admin/User) or even switch to a different user. How will you handle it?
- Custom directive (tooltip use case): sometimes the tooltip is text, sometimes it is a template. How will you handle it using HostListener, ElementRef, and Renderer2?
- Multiple router outlets: how will you render components dynamically using named router outlets?
- Facade service: why do we use a facade layer in Angular and how does it help in managing complexity?
- Smart and dumb components: how do you separate business logic and UI for better scalability?
- Content projection: how does ng-content help in building reusable components?
- Reusable form components: how will you create a reusable input component using ControlValueAccessor?