mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
parent
2ef777b0b2
commit
efc6684cd3
1 changed files with 1 additions and 1 deletions
|
|
@ -692,7 +692,7 @@ If the factory function needs access to other DI tokens, it can use the inject f
|
|||
const TOKEN =
|
||||
new InjectionToken('tree-shakeable token',
|
||||
{ providedIn: 'root', factory: () =>
|
||||
new AppConfig(inject(Parameter1), inject(Paremeter2)), });
|
||||
new AppConfig(inject(Parameter1), inject(Parameter2)), });
|
||||
</code-example>
|
||||
|
||||
{@a optional}
|
||||
|
|
|
|||
Loading…
Reference in a new issue