The users can configure injectors with providers at different levels of their application by setting a metadata value. The configuration can happen in one of three places,
- In the
@Injectable()decorator for the service itself - In the
@NgModule()decorator for an NgModule - In the
@Component()decorator for a component