@angular/core 12.2.8 → 12.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v12.2.8
2
+ * @license Angular v12.2.12
3
3
  * (c) 2010-2021 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v12.2.8
2
+ * @license Angular v12.2.12
3
3
  * (c) 2010-2021 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -4144,11 +4144,11 @@
4144
4144
  * parameterized type.
4145
4145
  *
4146
4146
  * `InjectionToken` is parameterized on `T` which is the type of object which will be returned by
4147
- * the `Injector`. This provides additional level of type safety.
4147
+ * the `Injector`. This provides an additional level of type safety.
4148
4148
  *
4149
4149
  * ```
4150
4150
  * interface MyInterface {...}
4151
- * var myInterface = injector.get(new InjectionToken<MyInterface>('SomeToken'));
4151
+ * const myInterface = injector.get(new InjectionToken<MyInterface>('SomeToken'));
4152
4152
  * // myInterface is inferred to be MyInterface.
4153
4153
  * ```
4154
4154
  *
@@ -4156,14 +4156,15 @@
4156
4156
  * (possibly by creating) a default value of the parameterized type `T`. This sets up the
4157
4157
  * `InjectionToken` using this factory as a provider as if it was defined explicitly in the
4158
4158
  * application's root injector. If the factory function, which takes zero arguments, needs to inject
4159
- * dependencies, it can do so using the `inject` function. See below for an example.
4159
+ * dependencies, it can do so using the `inject` function.
4160
+ * As you can see in the Tree-shakable InjectionToken example below.
4160
4161
  *
4161
4162
  * Additionally, if a `factory` is specified you can also specify the `providedIn` option, which
4162
4163
  * overrides the above behavior and marks the token as belonging to a particular `@NgModule`. As
4163
4164
  * mentioned above, `'root'` is the default value for `providedIn`.
4164
4165
  *
4165
4166
  * @usageNotes
4166
- * ### Basic Example
4167
+ * ### Basic Examples
4167
4168
  *
4168
4169
  * ### Plain InjectionToken
4169
4170
  *
@@ -4177,6 +4178,12 @@
4177
4178
  * @publicApi
4178
4179
  */
4179
4180
  var InjectionToken = /** @class */ (function () {
4181
+ /**
4182
+ * @param _desc Description for the token,
4183
+ * used only for debugging purposes,
4184
+ * it should but does not need to be unique
4185
+ * @param options Options for the token's usage, as described above
4186
+ */
4180
4187
  function InjectionToken(_desc, options) {
4181
4188
  this._desc = _desc;
4182
4189
  /** @internal */
@@ -22034,7 +22041,7 @@
22034
22041
  /**
22035
22042
  * @publicApi
22036
22043
  */
22037
- var VERSION = new Version('12.2.8');
22044
+ var VERSION = new Version('12.2.12');
22038
22045
 
22039
22046
  /**
22040
22047
  * @license