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,
@Injectable()
@NgModule()
@Component()