What is a directive in Angular?
- A behavior added to DOM
- A component template
- A module definition
- A route configuration
In Angular, a directive is a behavior added to the Document Object Model (DOM) to extend its functionality. Directives are a way to create reusable components and add dynamic behavior to elements.
Loading...
Related Quiz
- The _____ file in Protractor allows you to specify settings such as the Selenium address and test files.
- To test directives with dependencies, Angular provides the _______ class which allows you to inject dependencies and spy on their usage.
- The Ivy Renderer in Angular optimizes the application by using _____ rendering.
- In a Protractor test, how can you interact with a button element on a webpage?
- What technique can be used to ensure that an observable is automatically unsubscribed from, even if it was not manually unsubscribed?