Angular question detail
How do you configure injectors with providers at different levels?
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,
- In the
@Injectable()decorator for the service itself - In the
@NgModule()decorator for an NgModule - In the
@Component()decorator for a component