@angular/core 6.1.6 → 6.1.10

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.
Files changed (67) hide show
  1. package/bundles/core-testing.umd.js +23 -16
  2. package/bundles/core-testing.umd.js.map +1 -1
  3. package/bundles/core-testing.umd.min.js +6 -6
  4. package/bundles/core-testing.umd.min.js.map +1 -1
  5. package/bundles/core.umd.js +166 -139
  6. package/bundles/core.umd.js.map +1 -1
  7. package/bundles/core.umd.min.js +81 -81
  8. package/bundles/core.umd.min.js.map +1 -1
  9. package/core.metadata.json +1 -1
  10. package/esm2015/index.js +2 -2
  11. package/esm2015/public_api.js +2 -2
  12. package/esm2015/src/application_module.js +11 -4
  13. package/esm2015/src/change_detection/change_detector_ref.js +2 -2
  14. package/esm2015/src/core.js +2 -2
  15. package/esm2015/src/di/injection_token.js +3 -3
  16. package/esm2015/src/di/reflective_injector.js +1 -10
  17. package/esm2015/src/linker/component_factory.js +19 -16
  18. package/esm2015/src/linker/template_ref.js +20 -14
  19. package/esm2015/src/linker/view_container_ref.js +61 -68
  20. package/esm2015/src/linker/view_ref.js +29 -21
  21. package/esm2015/src/metadata/view.js +1 -4
  22. package/esm2015/src/render3/instructions.js +2 -2
  23. package/esm2015/src/render3/ng_dev_mode.js +52 -31
  24. package/esm2015/src/version.js +1 -1
  25. package/esm2015/src/zone.js +2 -2
  26. package/esm5/src/application_init.js +7 -8
  27. package/esm5/src/application_module.js +16 -10
  28. package/esm5/src/application_ref.js +15 -21
  29. package/esm5/src/change_detection/change_detector_ref.js +2 -2
  30. package/esm5/src/console.js +5 -4
  31. package/esm5/src/di/injection_token.js +3 -3
  32. package/esm5/src/di/reflective_injector.js +1 -1
  33. package/esm5/src/linker/compiler.js +5 -4
  34. package/esm5/src/linker/component_factory.js +4 -6
  35. package/esm5/src/linker/system_js_ng_module_factory_loader.js +6 -9
  36. package/esm5/src/linker/template_ref.js +13 -8
  37. package/esm5/src/linker/view_container_ref.js +9 -13
  38. package/esm5/src/linker/view_ref.js +22 -18
  39. package/esm5/src/metadata/view.js +4 -4
  40. package/esm5/src/render3/instructions.js +2 -2
  41. package/esm5/src/render3/ng_dev_mode.js +48 -27
  42. package/esm5/src/testability/testability.js +10 -13
  43. package/esm5/src/version.js +1 -1
  44. package/esm5/src/zone.js +2 -2
  45. package/esm5/testing/src/logger.js +6 -6
  46. package/esm5/testing/src/ng_zone_mock.js +5 -6
  47. package/esm5/testing/src/test_bed.js +13 -13
  48. package/esm5/testing/src/test_compiler.js +4 -4
  49. package/fesm2015/core.js +110 -84
  50. package/fesm2015/core.js.map +1 -1
  51. package/fesm2015/testing.js +1 -1
  52. package/fesm5/core.js +155 -141
  53. package/fesm5/core.js.map +1 -1
  54. package/fesm5/testing.js +17 -17
  55. package/fesm5/testing.js.map +1 -1
  56. package/package.json +1 -1
  57. package/src/application_module.d.ts +10 -2
  58. package/src/change_detection/change_detector_ref.d.ts +1 -1
  59. package/src/di/injection_token.d.ts +2 -2
  60. package/src/di/reflective_injector.d.ts +0 -9
  61. package/src/linker/component_factory.d.ts +22 -14
  62. package/src/linker/template_ref.d.ts +21 -11
  63. package/src/linker/view_container_ref.d.ts +61 -44
  64. package/src/linker/view_ref.d.ts +38 -18
  65. package/src/metadata/view.d.ts +3 -3
  66. package/src/render3/ng_dev_mode.d.ts +1 -1
  67. package/src/zone.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v6.1.6
2
+ * @license Angular v6.1.10
3
3
  * (c) 2010-2018 Google, Inc. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -50,6 +50,21 @@
50
50
  return __assign.apply(this, arguments);
51
51
  };
52
52
 
53
+ function __decorate(decorators, target, key, desc) {
54
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
55
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
56
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
57
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
58
+ }
59
+
60
+ function __param(paramIndex, decorator) {
61
+ return function (target, key) { decorator(target, key, paramIndex); }
62
+ }
63
+
64
+ function __metadata(metadataKey, metadataValue) {
65
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
66
+ }
67
+
53
68
  function __values(o) {
54
69
  var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
55
70
  if (m) return m.call(o);
@@ -174,11 +189,11 @@
174
189
  * @usageNotes
175
190
  * ### Basic Example
176
191
  *
177
- * #### Plain InjectionToken
192
+ * ### Plain InjectionToken
178
193
  *
179
194
  * {@example core/di/ts/injector_spec.ts region='InjectionToken'}
180
195
  *
181
- * #### Tree-shakable InjectionToken
196
+ * ### Tree-shakable InjectionToken
182
197
  *
183
198
  * {@example core/di/ts/injector_spec.ts region='ShakableInjectionToken'}
184
199
  *
@@ -1666,9 +1681,6 @@
1666
1681
  * For the DOM this means using modern [Shadow
1667
1682
  * DOM](https://w3c.github.io/webcomponents/spec/shadow/) and
1668
1683
  * creating a ShadowRoot for Component's Host Element.
1669
- *
1670
- * ### Example
1671
- * {@example core/ts/metadata/encapsulation.ts region='longform'}
1672
1684
  */
1673
1685
  ViewEncapsulation[ViewEncapsulation["ShadowDom"] = 3] = "ShadowDom";
1674
1686
  })(exports.ViewEncapsulation || (exports.ViewEncapsulation = {}));
@@ -1702,7 +1714,7 @@
1702
1714
  }
1703
1715
  return Version;
1704
1716
  }());
1705
- var VERSION = new Version('6.1.6');
1717
+ var VERSION = new Version('6.1.10');
1706
1718
 
1707
1719
  /**
1708
1720
  * @license
@@ -3098,13 +3110,11 @@
3098
3110
  }
3099
3111
  this.initialized = true;
3100
3112
  };
3101
- ApplicationInitStatus.decorators = [
3102
- { type: Injectable }
3103
- ];
3104
- /** @nocollapse */
3105
- ApplicationInitStatus.ctorParameters = function () { return [
3106
- { type: Array, decorators: [{ type: Inject, args: [APP_INITIALIZER,] }, { type: Optional }] }
3107
- ]; };
3113
+ ApplicationInitStatus = __decorate([
3114
+ Injectable(),
3115
+ __param(0, Inject(APP_INITIALIZER)), __param(0, Optional()),
3116
+ __metadata("design:paramtypes", [Array])
3117
+ ], ApplicationInitStatus);
3108
3118
  return ApplicationInitStatus;
3109
3119
  }());
3110
3120
 
@@ -3185,9 +3195,9 @@
3185
3195
  // tslint:disable-next-line:no-console
3186
3196
  console.warn(message);
3187
3197
  };
3188
- Console.decorators = [
3189
- { type: Injectable }
3190
- ];
3198
+ Console = __decorate([
3199
+ Injectable()
3200
+ ], Console);
3191
3201
  return Console;
3192
3202
  }());
3193
3203
 
@@ -3259,9 +3269,9 @@
3259
3269
  * Returns the id for a given NgModule, if one is defined and known to the compiler.
3260
3270
  */
3261
3271
  Compiler.prototype.getModuleId = function (moduleType) { return undefined; };
3262
- Compiler.decorators = [
3263
- { type: Injectable }
3264
- ];
3272
+ Compiler = __decorate([
3273
+ Injectable()
3274
+ ], Compiler);
3265
3275
  return Compiler;
3266
3276
  }());
3267
3277
  /**
@@ -3289,11 +3299,9 @@
3289
3299
  * found in the LICENSE file at https://angular.io/license
3290
3300
  */
3291
3301
  /**
3292
- * Represents an instance of a Component created via a {@link ComponentFactory}.
3293
- *
3294
- * `ComponentRef` provides access to the Component Instance as well other objects related to this
3295
- * Component Instance and allows you to destroy the Component Instance via the {@link #destroy}
3296
- * method.
3302
+ * Represents a component created by a `ComponentFactory`.
3303
+ * Provides access to the component instance and related objects,
3304
+ * and provides the means of destroying the instance.
3297
3305
  *
3298
3306
  */
3299
3307
  var ComponentRef = /** @class */ (function () {
@@ -4106,13 +4114,10 @@
4106
4114
  // TODO(juliemr): implement.
4107
4115
  return [];
4108
4116
  };
4109
- Testability.decorators = [
4110
- { type: Injectable }
4111
- ];
4112
- /** @nocollapse */
4113
- Testability.ctorParameters = function () { return [
4114
- { type: NgZone }
4115
- ]; };
4117
+ Testability = __decorate([
4118
+ Injectable(),
4119
+ __metadata("design:paramtypes", [NgZone])
4120
+ ], Testability);
4116
4121
  return Testability;
4117
4122
  }());
4118
4123
  /**
@@ -4165,11 +4170,10 @@
4165
4170
  if (findInAncestors === void 0) { findInAncestors = true; }
4166
4171
  return _testabilityGetter.findTestabilityInTree(this, elem, findInAncestors);
4167
4172
  };
4168
- TestabilityRegistry.decorators = [
4169
- { type: Injectable }
4170
- ];
4171
- /** @nocollapse */
4172
- TestabilityRegistry.ctorParameters = function () { return []; };
4173
+ TestabilityRegistry = __decorate([
4174
+ Injectable(),
4175
+ __metadata("design:paramtypes", [])
4176
+ ], TestabilityRegistry);
4173
4177
  return TestabilityRegistry;
4174
4178
  }());
4175
4179
  var _NoopGetTestability = /** @class */ (function () {
@@ -4453,13 +4457,10 @@
4453
4457
  enumerable: true,
4454
4458
  configurable: true
4455
4459
  });
4456
- PlatformRef.decorators = [
4457
- { type: Injectable }
4458
- ];
4459
- /** @nocollapse */
4460
- PlatformRef.ctorParameters = function () { return [
4461
- { type: Injector }
4462
- ]; };
4460
+ PlatformRef = __decorate([
4461
+ Injectable(),
4462
+ __metadata("design:paramtypes", [Injector])
4463
+ ], PlatformRef);
4463
4464
  return PlatformRef;
4464
4465
  }());
4465
4466
  function getNgZone(ngZoneOption) {
@@ -4570,6 +4571,7 @@
4570
4571
  this.isStable =
4571
4572
  rxjs.merge(isCurrentlyStable, isStable.pipe(operators.share()));
4572
4573
  }
4574
+ ApplicationRef_1 = ApplicationRef;
4573
4575
  /**
4574
4576
  * Bootstrap a new component at the root level of the application.
4575
4577
  *
@@ -4633,7 +4635,7 @@
4633
4635
  if (this._runningTick) {
4634
4636
  throw new Error('ApplicationRef.tick is called recursively');
4635
4637
  }
4636
- var scope = ApplicationRef._tickScope();
4638
+ var scope = ApplicationRef_1._tickScope();
4637
4639
  try {
4638
4640
  this._runningTick = true;
4639
4641
  this._views.forEach(function (view) { return view.detectChanges(); });
@@ -4693,20 +4695,16 @@
4693
4695
  enumerable: true,
4694
4696
  configurable: true
4695
4697
  });
4698
+ var ApplicationRef_1;
4696
4699
  /** @internal */
4697
4700
  ApplicationRef._tickScope = wtfCreateScope('ApplicationRef#tick()');
4698
- ApplicationRef.decorators = [
4699
- { type: Injectable }
4700
- ];
4701
- /** @nocollapse */
4702
- ApplicationRef.ctorParameters = function () { return [
4703
- { type: NgZone },
4704
- { type: Console },
4705
- { type: Injector },
4706
- { type: ErrorHandler },
4707
- { type: ComponentFactoryResolver },
4708
- { type: ApplicationInitStatus }
4709
- ]; };
4701
+ ApplicationRef = ApplicationRef_1 = __decorate([
4702
+ Injectable(),
4703
+ __metadata("design:paramtypes", [NgZone, Console, Injector,
4704
+ ErrorHandler,
4705
+ ComponentFactoryResolver,
4706
+ ApplicationInitStatus])
4707
+ ], ApplicationRef);
4710
4708
  return ApplicationRef;
4711
4709
  }());
4712
4710
  function remove(list, el) {
@@ -5062,14 +5060,11 @@
5062
5060
  .then(function (module) { return module[exportName + factoryClassSuffix]; })
5063
5061
  .then(function (factory) { return checkNotEmpty(factory, module, exportName); });
5064
5062
  };
5065
- SystemJsNgModuleLoader.decorators = [
5066
- { type: Injectable }
5067
- ];
5068
- /** @nocollapse */
5069
- SystemJsNgModuleLoader.ctorParameters = function () { return [
5070
- { type: Compiler },
5071
- { type: SystemJsNgModuleLoaderConfig, decorators: [{ type: Optional }] }
5072
- ]; };
5063
+ SystemJsNgModuleLoader = __decorate([
5064
+ Injectable(),
5065
+ __param(1, Optional()),
5066
+ __metadata("design:paramtypes", [Compiler, SystemJsNgModuleLoaderConfig])
5067
+ ], SystemJsNgModuleLoader);
5073
5068
  return SystemJsNgModuleLoader;
5074
5069
  }());
5075
5070
  function checkNotEmpty(value, modulePath, exportName) {
@@ -5087,15 +5082,20 @@
5087
5082
  * found in the LICENSE file at https://angular.io/license
5088
5083
  */
5089
5084
  /**
5090
- * Represents an Embedded Template that can be used to instantiate Embedded Views.
5085
+ * Represents an embedded template that can be used to instantiate embedded views.
5086
+ * To instantiate embedded views based on a template, use the `ViewContainerRef`
5087
+ * method `createEmbeddedView()`.
5088
+ *
5089
+ * Access a `TemplateRef` instance by placing a directive on an `<ng-template>`
5090
+ * element (or directive prefixed with `*`). The `TemplateRef` for the embedded view
5091
+ * is injected into the constructor of the directive,
5092
+ * using the `TemplateRef` token.
5091
5093
  *
5092
- * You can access a `TemplateRef`, in two ways. Via a directive placed on a `<ng-template>` element
5093
- * (or directive prefixed with `*`) and have the `TemplateRef` for this Embedded View injected into
5094
- * the constructor of the directive using the `TemplateRef` Token. Alternatively you can query for
5095
- * the `TemplateRef` from a Component or a Directive via {@link Query}.
5094
+ * You can also use a `Query` to find a `TemplateRef` associated with
5095
+ * a component or a directive.
5096
5096
  *
5097
- * To instantiate Embedded Views based on a Template, use {@link ViewContainerRef#
5098
- * createEmbeddedView}, which will create the View and attach it to the View Container.
5097
+ * @see `ViewContainerRef`
5098
+ * @see [Navigate the Component Tree with DI](guide/dependency-injection-navtree)
5099
5099
  *
5100
5100
  */
5101
5101
  var TemplateRef = /** @class */ (function () {
@@ -5112,21 +5112,17 @@
5112
5112
  * found in the LICENSE file at https://angular.io/license
5113
5113
  */
5114
5114
  /**
5115
- * Represents a container where one or more Views can be attached.
5115
+ * Represents a container where one or more views can be attached to a component.
5116
5116
  *
5117
- * The container can contain two kinds of Views. Host Views, created by instantiating a
5118
- * {@link Component} via {@link #createComponent}, and Embedded Views, created by instantiating an
5119
- * {@link TemplateRef Embedded Template} via {@link #createEmbeddedView}.
5117
+ * Can contain *host views* (created by instantiating a
5118
+ * component with the `createComponent()` method), and *embedded views*
5119
+ * (created by instantiating a `TemplateRef` with the `createEmbeddedView()` method).
5120
5120
  *
5121
- * The location of the View Container within the containing View is specified by the Anchor
5122
- * `element`. Each View Container can have only one Anchor Element and each Anchor Element can only
5123
- * have a single View Container.
5121
+ * A view container instance can contain other view containers,
5122
+ * creating a [view hierarchy](guide/glossary#view-tree).
5124
5123
  *
5125
- * Root elements of Views attached to this container become siblings of the Anchor Element in
5126
- * the Rendered View.
5127
- *
5128
- * To access a `ViewContainerRef` of an Element, you can either place a {@link Directive} injected
5129
- * with `ViewContainerRef` on the Element, or you obtain it via a {@link ViewChild} query.
5124
+ * @see `ComponentRef`
5125
+ * @see `EmbeddedViewRef`
5130
5126
  *
5131
5127
  */
5132
5128
  var ViewContainerRef = /** @class */ (function () {
@@ -5180,7 +5176,7 @@
5180
5176
  * when the `live` property is set to false, and reattaches it when the property
5181
5177
  * becomes true.
5182
5178
  *
5183
- * <code-example path="core/ts/change_detect/change-detection.ts" region="detach"></code-example>
5179
+ * <code-example path="core/ts/change_detect/change-detection.ts" region="reattach"></code-example>
5184
5180
  *
5185
5181
  */
5186
5182
  var ChangeDetectorRef = /** @class */ (function () {
@@ -5196,6 +5192,14 @@
5196
5192
  * Use of this source code is governed by an MIT-style license that can be
5197
5193
  * found in the LICENSE file at https://angular.io/license
5198
5194
  */
5195
+ /**
5196
+ * Represents an Angular [view](guide/glossary#view),
5197
+ * specifically the [host view](guide/glossary#view-tree) that is defined by a component.
5198
+ * Also serves as the base class
5199
+ * that adds destroy methods for [embedded views](guide/glossary#view-tree).
5200
+ *
5201
+ * @see `EmbeddedViewRef`
5202
+ */
5199
5203
  var ViewRef = /** @class */ (function (_super) {
5200
5204
  __extends(ViewRef, _super);
5201
5205
  function ViewRef() {
@@ -5204,21 +5208,21 @@
5204
5208
  return ViewRef;
5205
5209
  }(ChangeDetectorRef));
5206
5210
  /**
5207
- * Represents an Angular View.
5211
+ * Represents an Angular [view](guide/glossary#view) in a view container.
5212
+ * An [embedded view](guide/glossary#view-tree) can be referenced from a component
5213
+ * other than the hosting component whose template defines it, or it can be defined
5214
+ * independently by a `TemplateRef`.
5208
5215
  *
5209
- * <!-- TODO: move the next two paragraphs to the dev guide -->
5210
- * A View is a fundamental building block of the application UI. It is the smallest grouping of
5211
- * Elements which are created and destroyed together.
5216
+ * Properties of elements in a view can change, but the structure (number and order) of elements in
5217
+ * a view cannot. Change the structure of elements by inserting, moving, or
5218
+ * removing nested views in a view container.
5212
5219
  *
5213
- * Properties of elements in a View can change, but the structure (number and order) of elements in
5214
- * a View cannot. Changing the structure of Elements can only be done by inserting, moving or
5215
- * removing nested Views via a `ViewContainerRef`. Each View can contain many View Containers.
5216
- * <!-- /TODO -->
5220
+ * @see `ViewContainerRef`
5217
5221
  *
5218
5222
  * @usageNotes
5219
- * ### Example
5220
5223
  *
5221
- * Given this template...
5224
+ * The following template breaks down into two separate `TemplateRef` instances,
5225
+ * an outer one and an inner one.
5222
5226
  *
5223
5227
  * ```
5224
5228
  * Count: {{items.length}}
@@ -5227,9 +5231,7 @@
5227
5231
  * </ul>
5228
5232
  * ```
5229
5233
  *
5230
- * We have two `TemplateRef`s:
5231
- *
5232
- * Outer `TemplateRef`:
5234
+ * This is the outer `TemplateRef`:
5233
5235
  *
5234
5236
  * ```
5235
5237
  * Count: {{items.length}}
@@ -5238,15 +5240,13 @@
5238
5240
  * </ul>
5239
5241
  * ```
5240
5242
  *
5241
- * Inner `TemplateRef`:
5243
+ * This is the inner `TemplateRef`:
5242
5244
  *
5243
5245
  * ```
5244
5246
  * <li>{{item}}</li>
5245
5247
  * ```
5246
5248
  *
5247
- * Notice that the original template is broken down into two separate `TemplateRef`s.
5248
- *
5249
- * The outer/inner `TemplateRef`s are then assembled into views like so:
5249
+ * The outer and inner `TemplateRef` instances are assembled into views as follows:
5250
5250
  *
5251
5251
  * ```
5252
5252
  * <!-- ViewRef: outer-0 -->
@@ -6792,6 +6792,10 @@
6792
6792
  function _localeFactory(locale) {
6793
6793
  return locale || 'en-US';
6794
6794
  }
6795
+ /**
6796
+ * A built-in [dependency injection token](guide/glossary#di-token)
6797
+ * that is used to configure the root injector for bootstrapping.
6798
+ */
6795
6799
  var APPLICATION_MODULE_PROVIDERS = [
6796
6800
  {
6797
6801
  provide: ApplicationRef,
@@ -6814,8 +6818,12 @@
6814
6818
  },
6815
6819
  ];
6816
6820
  /**
6817
- * This module includes the providers of @angular/core that are needed
6818
- * to bootstrap components via `ApplicationRef`.
6821
+ * Configures the root injector for an app with
6822
+ * providers of `@angular/core` dependencies that `ApplicationRef` needs
6823
+ * to bootstrap components.
6824
+ *
6825
+ * Re-exported by `BrowserModule`, which is included automatically in the root
6826
+ * `AppModule` when you create a new app with the CLI `new` command.
6819
6827
  *
6820
6828
  * @experimental
6821
6829
  */
@@ -6823,13 +6831,10 @@
6823
6831
  // Inject ApplicationRef to make it eager...
6824
6832
  function ApplicationModule(appRef) {
6825
6833
  }
6826
- ApplicationModule.decorators = [
6827
- { type: NgModule, args: [{ providers: APPLICATION_MODULE_PROVIDERS },] }
6828
- ];
6829
- /** @nocollapse */
6830
- ApplicationModule.ctorParameters = function () { return [
6831
- { type: ApplicationRef }
6832
- ]; };
6834
+ ApplicationModule = __decorate([
6835
+ NgModule({ providers: APPLICATION_MODULE_PROVIDERS }),
6836
+ __metadata("design:paramtypes", [ApplicationRef])
6837
+ ], ApplicationModule);
6833
6838
  return ApplicationModule;
6834
6839
  }());
6835
6840
 
@@ -11816,34 +11821,55 @@
11816
11821
  * Use of this source code is governed by an MIT-style license that can be
11817
11822
  * found in the LICENSE file at https://angular.io/license
11818
11823
  */
11819
- var ngDevModeResetPerfCounters = (typeof ngDevMode == 'undefined' && (function (global) {
11820
- function ngDevModeResetPerfCounters() {
11821
- global['ngDevMode'] = {
11822
- firstTemplatePass: 0,
11823
- tNode: 0,
11824
- tView: 0,
11825
- rendererCreateTextNode: 0,
11826
- rendererSetText: 0,
11827
- rendererCreateElement: 0,
11828
- rendererAddEventListener: 0,
11829
- rendererSetAttribute: 0,
11830
- rendererRemoveAttribute: 0,
11831
- rendererSetProperty: 0,
11832
- rendererSetClassName: 0,
11833
- rendererAddClass: 0,
11834
- rendererRemoveClass: 0,
11835
- rendererSetStyle: 0,
11836
- rendererRemoveStyle: 0,
11837
- rendererDestroy: 0,
11838
- rendererDestroyNode: 0,
11839
- rendererMoveNode: 0,
11840
- rendererRemoveNode: 0,
11841
- };
11842
- }
11824
+ function ngDevModeResetPerfCounters() {
11825
+ var newCounters = {
11826
+ firstTemplatePass: 0,
11827
+ tNode: 0,
11828
+ tView: 0,
11829
+ rendererCreateTextNode: 0,
11830
+ rendererSetText: 0,
11831
+ rendererCreateElement: 0,
11832
+ rendererAddEventListener: 0,
11833
+ rendererSetAttribute: 0,
11834
+ rendererRemoveAttribute: 0,
11835
+ rendererSetProperty: 0,
11836
+ rendererSetClassName: 0,
11837
+ rendererAddClass: 0,
11838
+ rendererRemoveClass: 0,
11839
+ rendererSetStyle: 0,
11840
+ rendererRemoveStyle: 0,
11841
+ rendererDestroy: 0,
11842
+ rendererDestroyNode: 0,
11843
+ rendererMoveNode: 0,
11844
+ rendererRemoveNode: 0,
11845
+ };
11846
+ // NOTE: Under Ivy we may have both window & global defined in the Node
11847
+ // environment since ensureDocument() in render3.ts sets global.window.
11848
+ if (typeof window != 'undefined') {
11849
+ // Make sure to refer to ngDevMode as ['ngDevMode'] for closure.
11850
+ window['ngDevMode'] = newCounters;
11851
+ }
11852
+ if (typeof global != 'undefined') {
11853
+ // Make sure to refer to ngDevMode as ['ngDevMode'] for closure.
11854
+ global['ngDevMode'] = newCounters;
11855
+ }
11856
+ if (typeof self != 'undefined') {
11857
+ // Make sure to refer to ngDevMode as ['ngDevMode'] for closure.
11858
+ self['ngDevMode'] = newCounters;
11859
+ }
11860
+ return newCounters;
11861
+ }
11862
+ /**
11863
+ * This checks to see if the `ngDevMode` has been set. If yes,
11864
+ * than we honor it, otherwise we default to dev mode with additional checks.
11865
+ *
11866
+ * The idea is that unless we are doing production build where we explicitly
11867
+ * set `ngDevMode == false` we should be helping the developer by providing
11868
+ * as much early warning and errors as possible.
11869
+ */
11870
+ if (typeof ngDevMode === 'undefined' || ngDevMode) {
11843
11871
  ngDevModeResetPerfCounters();
11844
- return ngDevModeResetPerfCounters;
11845
- })(typeof window != 'undefined' && window || typeof self != 'undefined' && self ||
11846
- typeof global != 'undefined' && global));
11872
+ }
11847
11873
 
11848
11874
  /** Called when directives inject each other (creating a circular dependency) */
11849
11875
  function throwCyclicDependencyError(token) {
@@ -14450,7 +14476,7 @@
14450
14476
  *
14451
14477
  * This method lazily creates the `StylingContext`. This is because in most cases
14452
14478
  * we have styling without any bindings. Creating `StylingContext` eagerly would mean that
14453
- * every style declaration such as `<div style="color: 'red' ">` would result `StyleContext`
14479
+ * every style declaration such as `<div style="color: red">` would result `StyleContext`
14454
14480
  * which would create unnecessary memory pressure.
14455
14481
  *
14456
14482
  * @param index Index of the style allocation. See: `elementStyling`.
@@ -18839,6 +18865,7 @@
18839
18865
  exports.SkipSelf = SkipSelf;
18840
18866
  exports.Host = Host;
18841
18867
  exports.NgZone = NgZone;
18868
+ exports.ɵNoopNgZone = NoopNgZone;
18842
18869
  exports.RenderComponentType = RenderComponentType;
18843
18870
  exports.Renderer = Renderer;
18844
18871
  exports.Renderer2 = Renderer2;