What is the main purpose of using directives in Angular applications?

  • Create components
  • Define routing
  • Manipulate the DOM
  • Modify data
The main purpose of using directives in Angular applications is to manipulate the DOM by adding, removing, or modifying elements and their behavior. Directives are used to extend HTML with new attributes and elements.
Add your answer
Loading...

Leave a comment

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