@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/bundles/core.umd.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
|
*/
|
|
@@ -539,6 +539,7 @@
|
|
|
539
539
|
* Use the `CheckOnce` strategy, meaning that automatic change detection is deactivated
|
|
540
540
|
* until reactivated by setting the strategy to `Default` (`CheckAlways`).
|
|
541
541
|
* Change detection can still be explicitly invoked.
|
|
542
|
+
* This strategy applies to all child directives and cannot be overridden.
|
|
542
543
|
*/
|
|
543
544
|
ChangeDetectionStrategy[ChangeDetectionStrategy["OnPush"] = 0] = "OnPush";
|
|
544
545
|
/**
|
|
@@ -741,18 +742,18 @@
|
|
|
741
742
|
* selector: 'my-comp',
|
|
742
743
|
* templateUrl: 'my-comp.html', // This requires asynchronous resolution
|
|
743
744
|
* })
|
|
744
|
-
* class
|
|
745
|
+
* class MyComponent{
|
|
745
746
|
* }
|
|
746
747
|
*
|
|
747
|
-
* // Calling `renderComponent` will fail because `
|
|
748
|
-
* // needs to be resolved
|
|
749
|
-
* // renderComponent(MyComponent);
|
|
748
|
+
* // Calling `renderComponent` will fail because `renderComponent` is a synchronous process
|
|
749
|
+
* // and `MyComponent`'s `@Component.templateUrl` needs to be resolved asynchronously.
|
|
750
750
|
*
|
|
751
|
-
* // Calling `resolveComponentResources` will resolve `@
|
|
752
|
-
* // `@
|
|
753
|
-
*
|
|
751
|
+
* // Calling `resolveComponentResources()` will resolve `@Component.templateUrl` into
|
|
752
|
+
* // `@Component.template`, which allows `renderComponent` to proceed in a synchronous manner.
|
|
753
|
+
*
|
|
754
|
+
* // Use browser's `fetch()` function as the default resource resolution strategy.
|
|
754
755
|
* resolveComponentResources(fetch).then(() => {
|
|
755
|
-
* // After resolution all URLs have been converted into strings.
|
|
756
|
+
* // After resolution all URLs have been converted into `template` strings.
|
|
756
757
|
* renderComponent(MyComponent);
|
|
757
758
|
* });
|
|
758
759
|
*
|
|
@@ -761,8 +762,8 @@
|
|
|
761
762
|
* NOTE: In AOT the resolution happens during compilation, and so there should be no need
|
|
762
763
|
* to call this method outside JIT mode.
|
|
763
764
|
*
|
|
764
|
-
* @param resourceResolver a function which is responsible
|
|
765
|
-
* URL. Browser's `fetch` method is a good default implementation.
|
|
765
|
+
* @param resourceResolver a function which is responsible for returning a `Promise` to the
|
|
766
|
+
* contents of the resolved URL. Browser's `fetch()` method is a good default implementation.
|
|
766
767
|
*/
|
|
767
768
|
function resolveComponentResources(resourceResolver) {
|
|
768
769
|
// Store all promises which are fetching the resources.
|
|
@@ -1716,7 +1717,7 @@
|
|
|
1716
1717
|
* found in the LICENSE file at https://angular.io/license
|
|
1717
1718
|
*/
|
|
1718
1719
|
function getCompilerFacade() {
|
|
1719
|
-
var globalNg = _global
|
|
1720
|
+
var globalNg = _global['ng'];
|
|
1720
1721
|
if (!globalNg || !globalNg.ɵcompilerFacade) {
|
|
1721
1722
|
throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n" +
|
|
1722
1723
|
" - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n" +
|
|
@@ -5166,7 +5167,7 @@
|
|
|
5166
5167
|
var classesValue = classesPlayerBuilder ?
|
|
5167
5168
|
classesInput.value :
|
|
5168
5169
|
classesInput;
|
|
5169
|
-
var stylesValue = stylesPlayerBuilder ? stylesInput
|
|
5170
|
+
var stylesValue = stylesPlayerBuilder ? stylesInput['value'] : stylesInput;
|
|
5170
5171
|
// early exit (this is what's done to avoid using ctx.bind() to cache the value)
|
|
5171
5172
|
var ignoreAllClassUpdates = limitToSingleClasses(context) || classesValue === NO_CHANGE ||
|
|
5172
5173
|
classesValue === context[6 /* CachedClassValueOrInitialClassString */];
|
|
@@ -10788,7 +10789,7 @@
|
|
|
10788
10789
|
/**
|
|
10789
10790
|
* @publicApi
|
|
10790
10791
|
*/
|
|
10791
|
-
var VERSION = new Version('7.2.
|
|
10792
|
+
var VERSION = new Version('7.2.11');
|
|
10792
10793
|
|
|
10793
10794
|
/**
|
|
10794
10795
|
* @license
|
|
@@ -15437,7 +15438,7 @@
|
|
|
15437
15438
|
}
|
|
15438
15439
|
};
|
|
15439
15440
|
/**
|
|
15440
|
-
* Does the work of creating the `ngBaseDef` property for the
|
|
15441
|
+
* Does the work of creating the `ngBaseDef` property for the `Input` and `Output` decorators.
|
|
15441
15442
|
* @param key "inputs" or "outputs"
|
|
15442
15443
|
*/
|
|
15443
15444
|
var updateBaseDefFromIOProp = function (getProp) {
|