mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
We should not migrate the reference from `useExisting`. This is because
developers can only use the `useExisting` value as a token. e.g.
```ts
@NgModule({
providers: [
{provide: AppRippleConfig, useValue: rippleOptions},
{provide: MAT_RIPPLE_OPTIONS, useExisting: AppRippleConfig},
]
})
export class AppModule {}
```
In the case above, nothing should be decorated with `@Injectable`. The
`AppRippleConfig` class is just used as a token for injection.
PR Close #33286
|
||
|---|---|---|
| .. | ||
| BUILD.bazel | ||
| dynamic_queries_spec.ts | ||
| explicit_query_timing_rule_spec.ts | ||
| missing_injectable_rule_spec.ts | ||
| no_template_variable_assignment_rule_spec.ts | ||
| renderer_to_renderer2_spec.ts | ||
| undecorated_classes_with_decorated_fields_spec.ts | ||