Tech Mahindra Angular Interview Questions for 5-6+ years
Shared question set for 5-6+ years of experience, L2 round. Topics and wording follow the supplied notes; these are questions, not official company guidance.
- Introduce yourself and explain your current project and your role in detail.
- If your project was migrated from a monolithic architecture to Micro Frontends, explain the complete migration process.
- How do you implement reusable components in a Micro Frontend architecture?
- Suppose you made changes only to a shared Grid component. How would you deploy only that component without redeploying the entire application?
- How can you restrict users from navigating to specific screens in Angular?
- Have you used HTTP interceptors? Explain the use cases.
- If Angular already provides services, why do we still need HTTP interceptors? Can we have more than one interceptor?
- If two components need to exchange data, what are the different options available in Angular?
- Explain dependency injection in Angular.
- How do you ensure only a single instance of a service is used throughout the application?
- Explain the different types of data binding in Angular.
- What advantages do the new Angular control flow statements (@if, @for, @switch) provide over structural directives (*ngIf, *ngFor, *ngSwitch)?
- How would you display a list of employees with Edit, Delete, and Cancel actions using Angular data binding?
- How do you decide whether a value should be stored in a normal variable or in a Signal?
- When would you use the effect() API in Angular Signals?
- Your application contains more than 30 menus with multiple levels of child menus. How would you design and implement such a menu structure?
- What is a wildcard route?
- How do you configure a default route in Angular?
- Can we store data inside Angular routes? Have you worked with route resolvers?
- What factors do you consider before choosing between template-driven forms and reactive forms?
- Have you created custom validators for reactive forms? Explain a scenario.
- How would you handle a one-to-many relationship in a form when the backend expects a nested payload?
- Will you be open to working on back-end technology as well if given the chance?