@angular/core 7.2.7 → 7.2.11
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.js.map +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 +16 -15
- 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/metadata/directives.js +2 -2
- package/esm2015/src/metadata/ng_module.js +3 -1
- package/esm2015/src/metadata/resource_loading.js +11 -11
- package/esm2015/src/metadata.js +1 -1
- package/esm2015/src/render3/jit/compiler_facade.js +2 -2
- package/esm2015/src/render3/styling/class_and_style_bindings.js +2 -2
- package/esm2015/src/version.js +1 -1
- package/esm5/src/change_detection/constants.js +2 -1
- package/esm5/src/metadata/directives.js +2 -2
- package/esm5/src/metadata/ng_module.js +1 -1
- package/esm5/src/metadata/resource_loading.js +11 -11
- package/esm5/src/metadata.js +1 -1
- package/esm5/src/render3/jit/compiler_facade.js +2 -2
- package/esm5/src/render3/styling/class_and_style_bindings.js +2 -2
- package/esm5/src/version.js +1 -1
- package/fesm2015/core.js +16 -15
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/testing.js +1 -1
- package/fesm5/core.js +16 -15
- 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/metadata/directives.d.ts +76 -69
- package/src/metadata/ng_module.d.ts +4 -2
- package/src/metadata/resource_loading.d.ts +10 -10
- package/src/metadata.d.ts +1 -1
- package/testing/src/resolvers.d.ts +1 -1
- package/testing.d.ts +1 -1
package/fesm2015/testing.js
CHANGED
package/fesm5/core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v7.2.
|
|
2
|
+
* @license Angular v7.2.11
|
|
3
3
|
* (c) 2010-2019 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -455,6 +455,7 @@ var ChangeDetectionStrategy;
|
|
|
455
455
|
* Use the `CheckOnce` strategy, meaning that automatic change detection is deactivated
|
|
456
456
|
* until reactivated by setting the strategy to `Default` (`CheckAlways`).
|
|
457
457
|
* Change detection can still be explicitly invoked.
|
|
458
|
+
* This strategy applies to all child directives and cannot be overridden.
|
|
458
459
|
*/
|
|
459
460
|
ChangeDetectionStrategy[ChangeDetectionStrategy["OnPush"] = 0] = "OnPush";
|
|
460
461
|
/**
|
|
@@ -662,18 +663,18 @@ function resolveForwardRef(type) {
|
|
|
662
663
|
* selector: 'my-comp',
|
|
663
664
|
* templateUrl: 'my-comp.html', // This requires asynchronous resolution
|
|
664
665
|
* })
|
|
665
|
-
* class
|
|
666
|
+
* class MyComponent{
|
|
666
667
|
* }
|
|
667
668
|
*
|
|
668
|
-
* // Calling `renderComponent` will fail because `
|
|
669
|
-
* // needs to be resolved
|
|
670
|
-
* // renderComponent(MyComponent);
|
|
669
|
+
* // Calling `renderComponent` will fail because `renderComponent` is a synchronous process
|
|
670
|
+
* // and `MyComponent`'s `@Component.templateUrl` needs to be resolved asynchronously.
|
|
671
671
|
*
|
|
672
|
-
* // Calling `resolveComponentResources` will resolve `@
|
|
673
|
-
* // `@
|
|
674
|
-
*
|
|
672
|
+
* // Calling `resolveComponentResources()` will resolve `@Component.templateUrl` into
|
|
673
|
+
* // `@Component.template`, which allows `renderComponent` to proceed in a synchronous manner.
|
|
674
|
+
*
|
|
675
|
+
* // Use browser's `fetch()` function as the default resource resolution strategy.
|
|
675
676
|
* resolveComponentResources(fetch).then(() => {
|
|
676
|
-
* // After resolution all URLs have been converted into strings.
|
|
677
|
+
* // After resolution all URLs have been converted into `template` strings.
|
|
677
678
|
* renderComponent(MyComponent);
|
|
678
679
|
* });
|
|
679
680
|
*
|
|
@@ -682,8 +683,8 @@ function resolveForwardRef(type) {
|
|
|
682
683
|
* NOTE: In AOT the resolution happens during compilation, and so there should be no need
|
|
683
684
|
* to call this method outside JIT mode.
|
|
684
685
|
*
|
|
685
|
-
* @param resourceResolver a function which is responsible
|
|
686
|
-
* URL. Browser's `fetch` method is a good default implementation.
|
|
686
|
+
* @param resourceResolver a function which is responsible for returning a `Promise` to the
|
|
687
|
+
* contents of the resolved URL. Browser's `fetch()` method is a good default implementation.
|
|
687
688
|
*/
|
|
688
689
|
function resolveComponentResources(resourceResolver) {
|
|
689
690
|
// Store all promises which are fetching the resources.
|
|
@@ -1650,7 +1651,7 @@ var R3ResolvedDependencyType;
|
|
|
1650
1651
|
* found in the LICENSE file at https://angular.io/license
|
|
1651
1652
|
*/
|
|
1652
1653
|
function getCompilerFacade() {
|
|
1653
|
-
var globalNg = _global
|
|
1654
|
+
var globalNg = _global['ng'];
|
|
1654
1655
|
if (!globalNg || !globalNg.ɵcompilerFacade) {
|
|
1655
1656
|
throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n" +
|
|
1656
1657
|
" - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n" +
|
|
@@ -5106,7 +5107,7 @@ function updateStylingMap(context, classesInput, stylesInput, directiveRef) {
|
|
|
5106
5107
|
var classesValue = classesPlayerBuilder ?
|
|
5107
5108
|
classesInput.value :
|
|
5108
5109
|
classesInput;
|
|
5109
|
-
var stylesValue = stylesPlayerBuilder ? stylesInput
|
|
5110
|
+
var stylesValue = stylesPlayerBuilder ? stylesInput['value'] : stylesInput;
|
|
5110
5111
|
// early exit (this is what's done to avoid using ctx.bind() to cache the value)
|
|
5111
5112
|
var ignoreAllClassUpdates = limitToSingleClasses(context) || classesValue === NO_CHANGE ||
|
|
5112
5113
|
classesValue === context[6 /* CachedClassValueOrInitialClassString */];
|
|
@@ -10743,7 +10744,7 @@ var Version = /** @class */ (function () {
|
|
|
10743
10744
|
/**
|
|
10744
10745
|
* @publicApi
|
|
10745
10746
|
*/
|
|
10746
|
-
var VERSION = new Version('7.2.
|
|
10747
|
+
var VERSION = new Version('7.2.11');
|
|
10747
10748
|
|
|
10748
10749
|
/**
|
|
10749
10750
|
* @license
|
|
@@ -15392,7 +15393,7 @@ var initializeBaseDef = function (target) {
|
|
|
15392
15393
|
}
|
|
15393
15394
|
};
|
|
15394
15395
|
/**
|
|
15395
|
-
* Does the work of creating the `ngBaseDef` property for the
|
|
15396
|
+
* Does the work of creating the `ngBaseDef` property for the `Input` and `Output` decorators.
|
|
15396
15397
|
* @param key "inputs" or "outputs"
|
|
15397
15398
|
*/
|
|
15398
15399
|
var updateBaseDefFromIOProp = function (getProp) {
|