A client asks for a feature where certain parts of the application should only be accessible to authenticated users. Which feature of Angular would you use to implement this?

  • Angular Directives
  • Data Binding
  • Dependency Injection
  • Route Guards
In Angular, you can implement access control for certain parts of the application by using Route Guards. Route Guards allow you to protect routes based on conditions, such as whether the user is authenticated. Data Binding, Dependency Injection, and Angular Directives are not specifically designed for access control.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *