Changeset e29cc2e for trip-planner-front/node_modules/@angular/core/src
- Timestamp:
- 11/25/21 22:08:24 (3 years ago)
- Branches:
- master
- Children:
- 8d391a1
- Parents:
- 59329aa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/node_modules/@angular/core/src/r3_symbols.d.ts
r59329aa re29cc2e 1 1 /** 2 * @license Angular v12.2. 92 * @license Angular v12.2.13 3 3 * (c) 2010-2021 Google LLC. https://angular.io/ 4 4 * License: MIT … … 464 464 * 465 465 * `InjectionToken` is parameterized on `T` which is the type of object which will be returned by 466 * the `Injector`. This provides a dditional level of type safety.466 * the `Injector`. This provides an additional level of type safety. 467 467 * 468 468 * ``` 469 469 * interface MyInterface {...} 470 * varmyInterface = injector.get(new InjectionToken<MyInterface>('SomeToken'));470 * const myInterface = injector.get(new InjectionToken<MyInterface>('SomeToken')); 471 471 * // myInterface is inferred to be MyInterface. 472 472 * ``` … … 476 476 * `InjectionToken` using this factory as a provider as if it was defined explicitly in the 477 477 * application's root injector. If the factory function, which takes zero arguments, needs to inject 478 * dependencies, it can do so using the `inject` function. See below for an example. 478 * dependencies, it can do so using the `inject` function. 479 * As you can see in the Tree-shakable InjectionToken example below. 479 480 * 480 481 * Additionally, if a `factory` is specified you can also specify the `providedIn` option, which … … 483 484 * 484 485 * @usageNotes 485 * ### Basic Example 486 * ### Basic Examples 486 487 * 487 488 * ### Plain InjectionToken … … 499 500 protected _desc: string; 500 501 readonly ɵprov: unknown; 502 /** 503 * @param _desc Description for the token, 504 * used only for debugging purposes, 505 * it should but does not need to be unique 506 * @param options Options for the token's usage, as described above 507 */ 501 508 constructor(_desc: string, options?: { 502 509 providedIn?: Type<any> | 'root' | 'platform' | 'any' | null;
Note:
See TracChangeset
for help on using the changeset viewer.