What are the implications of importing a module that provides a service into multiple feature modules?
- Compilation error
- Multiple service instances
- No implications
- Shared singleton service instance
Importing a module with a service into multiple feature modules results in a shared singleton service instance, allowing data to be shared.
Loading...
Related Quiz
- To mock a service's method and provide a custom return value during testing, you can use a Jasmine _____.
- Which property of the NavigationExtras object allows you to preserve query parameters across multiple navigation operations?
- What is the advantage of using custom async validators in Angular forms?
- In Angular, what is the primary purpose of a component's class?
- The _____ testing utility in Angular helps you test code that contains asynchronous operations.