@angular/core 7.2.11 → 7.2.15
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/bundles/core-testing.umd.js +1 -1
- package/bundles/core-testing.umd.min.js +1 -1
- package/bundles/core-testing.umd.min.js.map +1 -1
- package/bundles/core.umd.js +3 -3
- package/bundles/core.umd.js.map +1 -1
- package/bundles/core.umd.min.js +2 -2
- package/bundles/core.umd.min.js.map +1 -1
- package/core.metadata.json +1 -1
- package/esm2015/src/di/injector_compatibility.js +1 -1
- package/esm2015/src/render3/interfaces/renderer.js +2 -2
- package/esm2015/src/sanitization/url_sanitizer.js +2 -2
- package/esm2015/src/version.js +1 -1
- package/esm5/src/di/injector_compatibility.js +1 -1
- package/esm5/src/render3/interfaces/renderer.js +1 -1
- package/esm5/src/sanitization/url_sanitizer.js +2 -2
- package/esm5/src/version.js +1 -1
- package/fesm2015/core.js +4 -4
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/testing.js +1 -1
- package/fesm5/core.js +3 -3
- package/fesm5/core.js.map +1 -1
- package/fesm5/testing.js +1 -1
- package/package.json +1 -1
- package/src/di/injector_compatibility.d.ts +13 -7
- package/src/render3/interfaces/renderer.d.ts +1 -1
- package/testing.d.ts +1 -1
package/fesm5/testing.js
CHANGED
package/package.json
CHANGED
|
@@ -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
|
-
*
|
|
41
|
-
*
|
|
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
|
-
*
|
|
54
|
+
* ### Example
|
|
47
55
|
*
|
|
48
|
-
*
|
|
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
|
|
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