@angular/core 7.2.9 → 7.2.13
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 +4 -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/change_detection/constants.js +2 -1
- package/esm2015/src/di/injector_compatibility.js +1 -1
- package/esm2015/src/metadata/directives.js +1 -1
- package/esm2015/src/metadata/ng_module.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/change_detection/constants.js +2 -1
- package/esm5/src/di/injector_compatibility.js +1 -1
- package/esm5/src/metadata/directives.js +1 -1
- package/esm5/src/metadata/ng_module.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 +5 -4
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/testing.js +1 -1
- package/fesm5/core.js +4 -3
- package/fesm5/core.js.map +1 -1
- package/fesm5/testing.js +1 -1
- package/package.json +1 -1
- package/src/change_detection/constants.d.ts +1 -0
- package/src/di/injector_compatibility.d.ts +13 -7
- package/src/metadata/directives.d.ts +2 -2
- package/src/metadata/ng_module.d.ts +1 -1
- package/src/render3/interfaces/renderer.d.ts +1 -1
- package/testing.d.ts +1 -1
package/fesm5/testing.js
CHANGED
package/package.json
CHANGED
|
@@ -16,6 +16,7 @@ export declare enum ChangeDetectionStrategy {
|
|
|
16
16
|
* Use the `CheckOnce` strategy, meaning that automatic change detection is deactivated
|
|
17
17
|
* until reactivated by setting the strategy to `Default` (`CheckAlways`).
|
|
18
18
|
* Change detection can still be explicitly invoked.
|
|
19
|
+
* This strategy applies to all child directives and cannot be overridden.
|
|
19
20
|
*/
|
|
20
21
|
OnPush = 0,
|
|
21
22
|
/**
|
|
@@ -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
|
*/
|
|
@@ -491,12 +491,12 @@ export interface Component extends Directive {
|
|
|
491
491
|
animations?: any[];
|
|
492
492
|
/**
|
|
493
493
|
* An encapsulation policy for the template and CSS styles. One of:
|
|
494
|
-
* - `ViewEncapsulation.Native`: Use
|
|
495
|
-
* only if natively available on the platform.
|
|
494
|
+
* - `ViewEncapsulation.Native`: Deprecated. Use `ViewEncapsulation.ShadowDom` instead.
|
|
496
495
|
* - `ViewEncapsulation.Emulated`: Use shimmed CSS that
|
|
497
496
|
* emulates the native behavior.
|
|
498
497
|
* - `ViewEncapsulation.None`: Use global CSS without any
|
|
499
498
|
* encapsulation.
|
|
499
|
+
* - `ViewEncapsulation.ShadowDom`: Use Shadow DOM v1 to encapsulate styles.
|
|
500
500
|
*
|
|
501
501
|
* If not supplied, the value is taken from `CompilerOptions`. The default compiler option is
|
|
502
502
|
* `ViewEncapsulation.Emulated`.
|
|
@@ -208,7 +208,7 @@ export interface NgModule {
|
|
|
208
208
|
*
|
|
209
209
|
* ### Example
|
|
210
210
|
*
|
|
211
|
-
* The following example allows MainModule to use
|
|
211
|
+
* The following example allows MainModule to use anything exported by
|
|
212
212
|
* `CommonModule`:
|
|
213
213
|
*
|
|
214
214
|
* ```javascript
|
|
@@ -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