docs: fix typo in dependency injection guide (#24972)

PR Close #24972
This commit is contained in:
Jerry Gao 2018-07-18 16:41:40 -04:00 committed by Igor Minar
parent f5e18029fa
commit a972c039c3

View File

@ -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}