0 votes
in Angular by
How do you configure injectors with providers at different levels?

1 Answer

0 votes
by

You can configure injectors with providers at different levels of your application by setting a metadata value. The configuration can happen in one of three places,

  1. In the @Injectable() decorator for the service itself
  2. In the @NgModule() decorator for an NgModule
  3. In the @Component() decorator for a component
...