docs(core): fix typo and example in InjectionToken doc (#15449)
The doc included an example that didn't use InjectionToken.
This commit is contained in:
parent
eac99c1b16
commit
d05aa70c6b
@ -42,8 +42,8 @@ export class OpaqueToken {
|
|||||||
* runtime representation) such as when injecting an interface, callable type, array or
|
* runtime representation) such as when injecting an interface, callable type, array or
|
||||||
* parametrized type.
|
* parametrized type.
|
||||||
*
|
*
|
||||||
* `InjectionToken` is parametrize on `T` which is the type of object which will be returned by the
|
* `InjectionToken` is parameterized on `T` which is the type of object which will be returned by
|
||||||
* `Injector`. This provides additional level of type safety.
|
* the `Injector`. This provides additional level of type safety.
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
* interface MyInterface {...}
|
* interface MyInterface {...}
|
||||||
@ -53,7 +53,7 @@ export class OpaqueToken {
|
|||||||
*
|
*
|
||||||
* ### Example
|
* ### Example
|
||||||
*
|
*
|
||||||
* {@example core/di/ts/injector_spec.ts region='Injector'}
|
* {@example core/di/ts/injector_spec.ts region='InjectionToken'}
|
||||||
*
|
*
|
||||||
* @stable
|
* @stable
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user