Question: When a service is provided for root and is also added to the provider's configuration for a lazy-loaded module, what instance of that service does the injector provide to constructors in the lazy-loaded module?
- A new instance of that service is created when the module is lazy loaded.
- Providing a service of the same type at a lazy-loaded module level is not allowed.
- If an instance of the service has not been created at the root level yet. it will create one there and then use it.
- A single instance of that service is always instantiated at root and is the only one ever used, including within lazy modules.
Answer: The correct answer of the above question is Option A:A new instance of that service is created when the module is lazy loaded.