For a directive to be used across multiple modules, it needs to be declared in a shared module and exported using the ________ array.
- declarations
- exports
- imports
- providers
To use a directive across multiple modules, it should be declared in a shared module and exported using the exports array.
Loading...
Related Quiz
- You are building a form where certain fields need to be shown or hidden based on the selection of a dropdown. How can you dynamically add or remove validations on these fields based on their visibility?
- You are building an e-commerce application and want to ensure that product details are fully loaded before navigating to the product detail page. Which feature of Angular's router would you use to achieve this?
- The _____ method in a Route Guard is used to check whether a user can navigate to a specific route.
- The _____ event is emitted when a navigation action starts.
- What is the purpose of using the resolve property in Angular routing?