@angular/core 7.2.11 → 7.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.
package/fesm5/testing.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v7.2.11
2
+ * @license Angular v7.2.12
3
3
  * (c) 2010-2019 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "7.2.11",
3
+ "version": "7.2.12",
4
4
  "description": "Angular - the core framework",
5
5
  "main": "./bundles/core.umd.js",
6
6
  "module": "./fesm5/core.js",
@@ -36,18 +36,24 @@ export declare function injectInjectorOnly<T>(token: Type<T> | InjectionToken<T>
36
36
  export declare function injectInjectorOnly<T>(token: Type<T> | InjectionToken<T>, flags?: InjectFlags): T | null;
37
37
  /**
38
38
  * Injects a token from the currently active injector.
39
+ * Must be used in the context of a factory function such as one defined for an
40
+ * `InjectionToken`. Throws an error if not called from such a context.
39
41
  *
40
- * This function must be used in the context of a factory function such as one defined for an
41
- * `InjectionToken`, and will throw an error if not called from such a context.
42
+ * Within such a factory function, using this function to request injection of a dependency
43
+ * is faster and more type-safe than providing an additional array of dependencies
44
+ * (as has been common with `useFactory` providers).
45
+ *
46
+ * @param token The injection token for the dependency to be injected.
47
+ * @param flags Optional flags that control how injection is executed.
48
+ * The flags correspond to injection strategies that can be specified with
49
+ * parameter decorators `@Host`, `@Self`, `@SkipSef`, and `@Optional`.
50
+ * @returns True if injection is successful, null otherwise.
42
51
  *
43
52
  * @usageNotes
44
- * ### Example
45
53
  *
46
- * {@example core/di/ts/injector_spec.ts region='ShakeableInjectionToken'}
54
+ * ### Example
47
55
  *
48
- * Within such a factory function `inject` is utilized to request injection of a dependency, instead
49
- * of providing an additional array of dependencies as was common to do with `useFactory` providers.
50
- * `inject` is faster and more type-safe.
56
+ * {@example core/di/ts/injector_spec.ts region='ShakableInjectionToken'}
51
57
  *
52
58
  * @publicApi
53
59
  */
@@ -10,7 +10,7 @@
10
10
  * We do this by defining a subset of DOM API to be the renderer and than
11
11
  * use that time for rendering.
12
12
  *
13
- * At runtime we can than use the DOM api directly, in server or web-worker
13
+ * At runtime we can then use the DOM api directly, in server or web-worker
14
14
  * it will be easy to implement such API.
15
15
  */
16
16
  import { RendererStyleFlags2, RendererType2 } from '../../render/api';
package/testing.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v7.2.11
2
+ * @license Angular v7.2.12
3
3
  * (c) 2010-2019 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */