@angular/router 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 (49) hide show
  1. package/bundles/router-testing.umd.js +37 -26
  2. package/bundles/router-testing.umd.js.map +1 -1
  3. package/bundles/router-testing.umd.min.js +4 -4
  4. package/bundles/router-testing.umd.min.js.map +1 -1
  5. package/bundles/router-upgrade.umd.js +1 -1
  6. package/bundles/router-upgrade.umd.min.js +1 -1
  7. package/bundles/router-upgrade.umd.min.js.map +1 -1
  8. package/bundles/router.umd.js +214 -126
  9. package/bundles/router.umd.js.map +1 -1
  10. package/bundles/router.umd.min.js +19 -19
  11. package/bundles/router.umd.min.js.map +1 -1
  12. package/esm2015/src/config.js +1 -1
  13. package/esm2015/src/router.js +36 -12
  14. package/esm2015/src/router_module.js +2 -1
  15. package/esm2015/src/router_state.js +3 -1
  16. package/esm2015/src/url_tree.js +4 -2
  17. package/esm2015/src/version.js +1 -1
  18. package/esm2015/testing/src/router_testing_module.js +2 -1
  19. package/esm5/src/components/empty_outlet.js +5 -4
  20. package/esm5/src/config.js +1 -1
  21. package/esm5/src/directives/router_link.js +100 -45
  22. package/esm5/src/directives/router_link_active.js +27 -20
  23. package/esm5/src/directives/router_outlet.js +16 -16
  24. package/esm5/src/router.js +30 -11
  25. package/esm5/src/router_module.js +20 -22
  26. package/esm5/src/router_preloader.js +6 -12
  27. package/esm5/src/router_state.js +3 -1
  28. package/esm5/src/url_tree.js +4 -2
  29. package/esm5/src/version.js +1 -1
  30. package/esm5/testing/src/router_testing_module.js +26 -26
  31. package/fesm2015/router.js +39 -14
  32. package/fesm2015/router.js.map +1 -1
  33. package/fesm2015/testing.js +2 -1
  34. package/fesm2015/testing.js.map +1 -1
  35. package/fesm2015/upgrade.js +1 -1
  36. package/fesm5/router.js +201 -128
  37. package/fesm5/router.js.map +1 -1
  38. package/fesm5/testing.js +27 -27
  39. package/fesm5/testing.js.map +1 -1
  40. package/fesm5/upgrade.js +1 -1
  41. package/package.json +4 -4
  42. package/router.metadata.json +1 -1
  43. package/src/config.d.ts +1 -0
  44. package/src/router.d.ts +21 -8
  45. package/src/router_module.d.ts +1 -0
  46. package/src/router_state.d.ts +2 -0
  47. package/src/url_tree.d.ts +3 -1
  48. package/testing/src/router_testing_module.d.ts +1 -0
  49. package/testing/testing.metadata.json +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);
@@ -534,9 +549,9 @@
534
549
  var EmptyOutletComponent = /** @class */ (function () {
535
550
  function EmptyOutletComponent() {
536
551
  }
537
- EmptyOutletComponent.decorators = [
538
- { type: core.Component, args: [{ template: "<router-outlet></router-outlet>" }] }
539
- ];
552
+ EmptyOutletComponent = __decorate([
553
+ core.Component({ template: "<router-outlet></router-outlet>" })
554
+ ], EmptyOutletComponent);
540
555
  return EmptyOutletComponent;
541
556
  }());
542
557
 
@@ -896,6 +911,7 @@
896
911
  * serialized tree.
897
912
  * UrlTree is a data structure that provides a lot of affordances in dealing with URLs
898
913
  *
914
+ * @usageNotes
899
915
  * ### Example
900
916
  *
901
917
  * ```
@@ -985,7 +1001,8 @@
985
1001
  * A UrlSegment is a part of a URL between the two slashes. It contains a path and the matrix
986
1002
  * parameters associated with the segment.
987
1003
  *
988
- * ## Example
1004
+ * @usageNotes
1005
+ * ### Example
989
1006
  *
990
1007
  * ```
991
1008
  * @Component({templateUrl:'template.html'})
@@ -1919,6 +1936,7 @@
1919
1936
  * RouterState is a tree of activated routes. Every node in this tree knows about the "consumed" URL
1920
1937
  * segments, the extracted parameters, and the resolved data.
1921
1938
  *
1939
+ * @usageNotes
1922
1940
  * ### Example
1923
1941
  *
1924
1942
  * ```
@@ -2232,6 +2250,7 @@
2232
2250
  * This is a tree of activated route snapshots. Every node in this tree knows about
2233
2251
  * the "consumed" URL segments, the extracted parameters, and the resolved data.
2234
2252
  *
2253
+ * @usageNotes
2235
2254
  * ### Example
2236
2255
  *
2237
2256
  * ```
@@ -3418,6 +3437,7 @@
3418
3437
  this.config = config;
3419
3438
  this.navigations = new rxjs.BehaviorSubject(null);
3420
3439
  this.navigationId = 0;
3440
+ this.isNgZoneEnabled = false;
3421
3441
  this.events = new rxjs.Subject();
3422
3442
  /**
3423
3443
  * Error handler that is invoked when a navigation errors.
@@ -3484,6 +3504,9 @@
3484
3504
  var onLoadStart = function (r) { return _this.triggerEvent(new RouteConfigLoadStart(r)); };
3485
3505
  var onLoadEnd = function (r) { return _this.triggerEvent(new RouteConfigLoadEnd(r)); };
3486
3506
  this.ngModule = injector.get(core.NgModuleRef);
3507
+ this.console = injector.get(core.ɵConsole);
3508
+ var ngZone = injector.get(core.NgZone);
3509
+ this.isNgZoneEnabled = ngZone instanceof core.NgZone;
3487
3510
  this.resetConfig(config);
3488
3511
  this.currentUrlTree = createEmptyUrlTree();
3489
3512
  this.rawUrlTree = this.currentUrlTree;
@@ -3536,11 +3559,13 @@
3536
3559
  configurable: true
3537
3560
  });
3538
3561
  /** @internal */
3539
- Router.prototype.triggerEvent = function (e) { this.events.next(e); };
3562
+ Router.prototype.triggerEvent = function (event) { this.events.next(event); };
3540
3563
  /**
3541
3564
  * Resets the configuration used for navigation and generating links.
3542
3565
  *
3543
- * ### Usage
3566
+ * @usageNotes
3567
+ *
3568
+ * ### Example
3544
3569
  *
3545
3570
  * ```
3546
3571
  * router.resetConfig([
@@ -3572,7 +3597,9 @@
3572
3597
  * When given an activate route, applies the given commands starting from the route.
3573
3598
  * When not given a route, applies the given command starting from the root.
3574
3599
  *
3575
- * ### Usage
3600
+ * @usageNotes
3601
+ *
3602
+ * ### Example
3576
3603
  *
3577
3604
  * ```
3578
3605
  * // create /team/33/user/11
@@ -3644,7 +3671,9 @@
3644
3671
  * - resolves to 'false' when navigation fails,
3645
3672
  * - is rejected when an error happens.
3646
3673
  *
3647
- * ### Usage
3674
+ * @usageNotes
3675
+ *
3676
+ * ### Example
3648
3677
  *
3649
3678
  * ```
3650
3679
  * router.navigateByUrl("/team/33/user/11");
@@ -3653,11 +3682,16 @@
3653
3682
  * router.navigateByUrl("/team/33/user/11", { skipLocationChange: true });
3654
3683
  * ```
3655
3684
  *
3656
- * In opposite to `navigate`, `navigateByUrl` takes a whole URL
3657
- * and does not apply any delta to the current one.
3685
+ * Since `navigateByUrl()` takes an absolute URL as the first parameter,
3686
+ * it will not apply any delta to the current URL and ignores any properties
3687
+ * in the second parameter (the `NavigationExtras`) that would change the
3688
+ * provided URL.
3658
3689
  */
3659
3690
  Router.prototype.navigateByUrl = function (url, extras) {
3660
3691
  if (extras === void 0) { extras = { skipLocationChange: false }; }
3692
+ if (core.isDevMode() && this.isNgZoneEnabled && !core.NgZone.isInAngularZone()) {
3693
+ this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");
3694
+ }
3661
3695
  var urlTree = url instanceof UrlTree ? url : this.parseUrl(url);
3662
3696
  var mergedTree = this.urlHandlingStrategy.merge(urlTree, this.rawUrlTree);
3663
3697
  return this.scheduleNavigation(mergedTree, 'imperative', null, extras);
@@ -3671,7 +3705,9 @@
3671
3705
  * - resolves to 'false' when navigation fails,
3672
3706
  * - is rejected when an error happens.
3673
3707
  *
3674
- * ### Usage
3708
+ * @usageNotes
3709
+ *
3710
+ * ### Example
3675
3711
  *
3676
3712
  * ```
3677
3713
  * router.navigate(['team', 33, 'user', 11], {relativeTo: route});
@@ -3680,8 +3716,9 @@
3680
3716
  * router.navigate(['team', 33, 'user', 11], {relativeTo: route, skipLocationChange: true});
3681
3717
  * ```
3682
3718
  *
3683
- * In opposite to `navigateByUrl`, `navigate` always takes a delta that is applied to the current
3684
- * URL.
3719
+ * The first parameter of `navigate()` is a delta to be applied to the current URL
3720
+ * or the one provided in the `relativeTo` property of the second parameter (the
3721
+ * `NavigationExtras`).
3685
3722
  */
3686
3723
  Router.prototype.navigate = function (commands, extras) {
3687
3724
  if (extras === void 0) { extras = { skipLocationChange: false }; }
@@ -4112,6 +4149,7 @@
4112
4149
  else {
4113
4150
  var config = parentLoadedConfig(future.snapshot);
4114
4151
  var cmpFactoryResolver = config ? config.module.componentFactoryResolver : null;
4152
+ context.attachRef = null;
4115
4153
  context.route = future;
4116
4154
  context.resolver = cmpFactoryResolver;
4117
4155
  if (context.outlet) {
@@ -4289,28 +4327,51 @@
4289
4327
  enumerable: true,
4290
4328
  configurable: true
4291
4329
  });
4292
- RouterLink.decorators = [
4293
- { type: core.Directive, args: [{ selector: ':not(a)[routerLink]' },] }
4294
- ];
4295
- /** @nocollapse */
4296
- RouterLink.ctorParameters = function () { return [
4297
- { type: Router },
4298
- { type: ActivatedRoute },
4299
- { type: String, decorators: [{ type: core.Attribute, args: ['tabindex',] }] },
4300
- { type: core.Renderer2 },
4301
- { type: core.ElementRef }
4302
- ]; };
4303
- RouterLink.propDecorators = {
4304
- queryParams: [{ type: core.Input }],
4305
- fragment: [{ type: core.Input }],
4306
- queryParamsHandling: [{ type: core.Input }],
4307
- preserveFragment: [{ type: core.Input }],
4308
- skipLocationChange: [{ type: core.Input }],
4309
- replaceUrl: [{ type: core.Input }],
4310
- routerLink: [{ type: core.Input }],
4311
- preserveQueryParams: [{ type: core.Input }],
4312
- onClick: [{ type: core.HostListener, args: ['click',] }]
4313
- };
4330
+ __decorate([
4331
+ core.Input(),
4332
+ __metadata("design:type", Object)
4333
+ ], RouterLink.prototype, "queryParams", void 0);
4334
+ __decorate([
4335
+ core.Input(),
4336
+ __metadata("design:type", String)
4337
+ ], RouterLink.prototype, "fragment", void 0);
4338
+ __decorate([
4339
+ core.Input(),
4340
+ __metadata("design:type", String)
4341
+ ], RouterLink.prototype, "queryParamsHandling", void 0);
4342
+ __decorate([
4343
+ core.Input(),
4344
+ __metadata("design:type", Boolean)
4345
+ ], RouterLink.prototype, "preserveFragment", void 0);
4346
+ __decorate([
4347
+ core.Input(),
4348
+ __metadata("design:type", Boolean)
4349
+ ], RouterLink.prototype, "skipLocationChange", void 0);
4350
+ __decorate([
4351
+ core.Input(),
4352
+ __metadata("design:type", Boolean)
4353
+ ], RouterLink.prototype, "replaceUrl", void 0);
4354
+ __decorate([
4355
+ core.Input(),
4356
+ __metadata("design:type", Object),
4357
+ __metadata("design:paramtypes", [Object])
4358
+ ], RouterLink.prototype, "routerLink", null);
4359
+ __decorate([
4360
+ core.Input(),
4361
+ __metadata("design:type", Boolean),
4362
+ __metadata("design:paramtypes", [Boolean])
4363
+ ], RouterLink.prototype, "preserveQueryParams", null);
4364
+ __decorate([
4365
+ core.HostListener('click'),
4366
+ __metadata("design:type", Function),
4367
+ __metadata("design:paramtypes", []),
4368
+ __metadata("design:returntype", Boolean)
4369
+ ], RouterLink.prototype, "onClick", null);
4370
+ RouterLink = __decorate([
4371
+ core.Directive({ selector: ':not(a)[routerLink]' }),
4372
+ __param(2, core.Attribute('tabindex')),
4373
+ __metadata("design:paramtypes", [Router, ActivatedRoute, String, core.Renderer2, core.ElementRef])
4374
+ ], RouterLink);
4314
4375
  return RouterLink;
4315
4376
  }());
4316
4377
  /**
@@ -4392,28 +4453,59 @@
4392
4453
  enumerable: true,
4393
4454
  configurable: true
4394
4455
  });
4395
- RouterLinkWithHref.decorators = [
4396
- { type: core.Directive, args: [{ selector: 'a[routerLink]' },] }
4397
- ];
4398
- /** @nocollapse */
4399
- RouterLinkWithHref.ctorParameters = function () { return [
4400
- { type: Router },
4401
- { type: ActivatedRoute },
4402
- { type: common.LocationStrategy }
4403
- ]; };
4404
- RouterLinkWithHref.propDecorators = {
4405
- target: [{ type: core.HostBinding, args: ['attr.target',] }, { type: core.Input }],
4406
- queryParams: [{ type: core.Input }],
4407
- fragment: [{ type: core.Input }],
4408
- queryParamsHandling: [{ type: core.Input }],
4409
- preserveFragment: [{ type: core.Input }],
4410
- skipLocationChange: [{ type: core.Input }],
4411
- replaceUrl: [{ type: core.Input }],
4412
- href: [{ type: core.HostBinding }],
4413
- routerLink: [{ type: core.Input }],
4414
- preserveQueryParams: [{ type: core.Input }],
4415
- onClick: [{ type: core.HostListener, args: ['click', ['$event.button', '$event.ctrlKey', '$event.metaKey', '$event.shiftKey'],] }]
4416
- };
4456
+ __decorate([
4457
+ core.HostBinding('attr.target'), core.Input(),
4458
+ __metadata("design:type", String)
4459
+ ], RouterLinkWithHref.prototype, "target", void 0);
4460
+ __decorate([
4461
+ core.Input(),
4462
+ __metadata("design:type", Object)
4463
+ ], RouterLinkWithHref.prototype, "queryParams", void 0);
4464
+ __decorate([
4465
+ core.Input(),
4466
+ __metadata("design:type", String)
4467
+ ], RouterLinkWithHref.prototype, "fragment", void 0);
4468
+ __decorate([
4469
+ core.Input(),
4470
+ __metadata("design:type", String)
4471
+ ], RouterLinkWithHref.prototype, "queryParamsHandling", void 0);
4472
+ __decorate([
4473
+ core.Input(),
4474
+ __metadata("design:type", Boolean)
4475
+ ], RouterLinkWithHref.prototype, "preserveFragment", void 0);
4476
+ __decorate([
4477
+ core.Input(),
4478
+ __metadata("design:type", Boolean)
4479
+ ], RouterLinkWithHref.prototype, "skipLocationChange", void 0);
4480
+ __decorate([
4481
+ core.Input(),
4482
+ __metadata("design:type", Boolean)
4483
+ ], RouterLinkWithHref.prototype, "replaceUrl", void 0);
4484
+ __decorate([
4485
+ core.HostBinding(),
4486
+ __metadata("design:type", String)
4487
+ ], RouterLinkWithHref.prototype, "href", void 0);
4488
+ __decorate([
4489
+ core.Input(),
4490
+ __metadata("design:type", Object),
4491
+ __metadata("design:paramtypes", [Object])
4492
+ ], RouterLinkWithHref.prototype, "routerLink", null);
4493
+ __decorate([
4494
+ core.Input(),
4495
+ __metadata("design:type", Boolean),
4496
+ __metadata("design:paramtypes", [Boolean])
4497
+ ], RouterLinkWithHref.prototype, "preserveQueryParams", null);
4498
+ __decorate([
4499
+ core.HostListener('click', ['$event.button', '$event.ctrlKey', '$event.metaKey', '$event.shiftKey']),
4500
+ __metadata("design:type", Function),
4501
+ __metadata("design:paramtypes", [Number, Boolean, Boolean, Boolean]),
4502
+ __metadata("design:returntype", Boolean)
4503
+ ], RouterLinkWithHref.prototype, "onClick", null);
4504
+ RouterLinkWithHref = __decorate([
4505
+ core.Directive({ selector: 'a[routerLink]' }),
4506
+ __metadata("design:paramtypes", [Router, ActivatedRoute,
4507
+ common.LocationStrategy])
4508
+ ], RouterLinkWithHref);
4417
4509
  return RouterLinkWithHref;
4418
4510
  }());
4419
4511
  function attrBoolValue(s) {
@@ -4545,25 +4637,31 @@
4545
4637
  return this.links.some(this.isLinkActive(this.router)) ||
4546
4638
  this.linksWithHrefs.some(this.isLinkActive(this.router));
4547
4639
  };
4548
- RouterLinkActive.decorators = [
4549
- { type: core.Directive, args: [{
4550
- selector: '[routerLinkActive]',
4551
- exportAs: 'routerLinkActive',
4552
- },] }
4553
- ];
4554
- /** @nocollapse */
4555
- RouterLinkActive.ctorParameters = function () { return [
4556
- { type: Router },
4557
- { type: core.ElementRef },
4558
- { type: core.Renderer2 },
4559
- { type: core.ChangeDetectorRef }
4560
- ]; };
4561
- RouterLinkActive.propDecorators = {
4562
- links: [{ type: core.ContentChildren, args: [RouterLink, { descendants: true },] }],
4563
- linksWithHrefs: [{ type: core.ContentChildren, args: [RouterLinkWithHref, { descendants: true },] }],
4564
- routerLinkActiveOptions: [{ type: core.Input }],
4565
- routerLinkActive: [{ type: core.Input }]
4566
- };
4640
+ __decorate([
4641
+ core.ContentChildren(RouterLink, { descendants: true }),
4642
+ __metadata("design:type", core.QueryList)
4643
+ ], RouterLinkActive.prototype, "links", void 0);
4644
+ __decorate([
4645
+ core.ContentChildren(RouterLinkWithHref, { descendants: true }),
4646
+ __metadata("design:type", core.QueryList)
4647
+ ], RouterLinkActive.prototype, "linksWithHrefs", void 0);
4648
+ __decorate([
4649
+ core.Input(),
4650
+ __metadata("design:type", Object)
4651
+ ], RouterLinkActive.prototype, "routerLinkActiveOptions", void 0);
4652
+ __decorate([
4653
+ core.Input(),
4654
+ __metadata("design:type", Object),
4655
+ __metadata("design:paramtypes", [Object])
4656
+ ], RouterLinkActive.prototype, "routerLinkActive", null);
4657
+ RouterLinkActive = __decorate([
4658
+ core.Directive({
4659
+ selector: '[routerLinkActive]',
4660
+ exportAs: 'routerLinkActive',
4661
+ }),
4662
+ __metadata("design:paramtypes", [Router, core.ElementRef, core.Renderer2,
4663
+ core.ChangeDetectorRef])
4664
+ ], RouterLinkActive);
4567
4665
  return RouterLinkActive;
4568
4666
  }());
4569
4667
 
@@ -4778,21 +4876,20 @@
4778
4876
  this.changeDetector.markForCheck();
4779
4877
  this.activateEvents.emit(this.activated.instance);
4780
4878
  };
4781
- RouterOutlet.decorators = [
4782
- { type: core.Directive, args: [{ selector: 'router-outlet', exportAs: 'outlet' },] }
4783
- ];
4784
- /** @nocollapse */
4785
- RouterOutlet.ctorParameters = function () { return [
4786
- { type: ChildrenOutletContexts },
4787
- { type: core.ViewContainerRef },
4788
- { type: core.ComponentFactoryResolver },
4789
- { type: String, decorators: [{ type: core.Attribute, args: ['name',] }] },
4790
- { type: core.ChangeDetectorRef }
4791
- ]; };
4792
- RouterOutlet.propDecorators = {
4793
- activateEvents: [{ type: core.Output, args: ['activate',] }],
4794
- deactivateEvents: [{ type: core.Output, args: ['deactivate',] }]
4795
- };
4879
+ __decorate([
4880
+ core.Output('activate'),
4881
+ __metadata("design:type", Object)
4882
+ ], RouterOutlet.prototype, "activateEvents", void 0);
4883
+ __decorate([
4884
+ core.Output('deactivate'),
4885
+ __metadata("design:type", Object)
4886
+ ], RouterOutlet.prototype, "deactivateEvents", void 0);
4887
+ RouterOutlet = __decorate([
4888
+ core.Directive({ selector: 'router-outlet', exportAs: 'outlet' }),
4889
+ __param(3, core.Attribute('name')),
4890
+ __metadata("design:paramtypes", [ChildrenOutletContexts, core.ViewContainerRef,
4891
+ core.ComponentFactoryResolver, String, core.ChangeDetectorRef])
4892
+ ], RouterOutlet);
4796
4893
  return RouterOutlet;
4797
4894
  }());
4798
4895
  var OutletInjector = /** @class */ (function () {
@@ -4942,17 +5039,11 @@
4942
5039
  }));
4943
5040
  });
4944
5041
  };
4945
- RouterPreloader.decorators = [
4946
- { type: core.Injectable }
4947
- ];
4948
- /** @nocollapse */
4949
- RouterPreloader.ctorParameters = function () { return [
4950
- { type: Router },
4951
- { type: core.NgModuleFactoryLoader },
4952
- { type: core.Compiler },
4953
- { type: core.Injector },
4954
- { type: PreloadingStrategy }
4955
- ]; };
5042
+ RouterPreloader = __decorate([
5043
+ core.Injectable(),
5044
+ __metadata("design:paramtypes", [Router, core.NgModuleFactoryLoader, core.Compiler,
5045
+ core.Injector, PreloadingStrategy])
5046
+ ], RouterPreloader);
4956
5047
  return RouterPreloader;
4957
5048
  }());
4958
5049
 
@@ -5147,6 +5238,7 @@
5147
5238
  // Note: We are injecting the Router so it gets created eagerly...
5148
5239
  function RouterModule(guard, router) {
5149
5240
  }
5241
+ RouterModule_1 = RouterModule;
5150
5242
  /**
5151
5243
  * Creates a module with all the router providers and directives. It also optionally sets up an
5152
5244
  * application listener to perform an initial navigation.
@@ -5165,7 +5257,7 @@
5165
5257
  */
5166
5258
  RouterModule.forRoot = function (routes, config) {
5167
5259
  return {
5168
- ngModule: RouterModule,
5260
+ ngModule: RouterModule_1,
5169
5261
  providers: [
5170
5262
  ROUTER_PROVIDERS,
5171
5263
  provideRoutes(routes),
@@ -5201,20 +5293,18 @@
5201
5293
  * Creates a module with all the router directives and a provider registering routes.
5202
5294
  */
5203
5295
  RouterModule.forChild = function (routes) {
5204
- return { ngModule: RouterModule, providers: [provideRoutes(routes)] };
5205
- };
5206
- RouterModule.decorators = [
5207
- { type: core.NgModule, args: [{
5208
- declarations: ROUTER_DIRECTIVES,
5209
- exports: ROUTER_DIRECTIVES,
5210
- entryComponents: [EmptyOutletComponent]
5211
- },] }
5212
- ];
5213
- /** @nocollapse */
5214
- RouterModule.ctorParameters = function () { return [
5215
- { type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [ROUTER_FORROOT_GUARD,] }] },
5216
- { type: Router, decorators: [{ type: core.Optional }] }
5217
- ]; };
5296
+ return { ngModule: RouterModule_1, providers: [provideRoutes(routes)] };
5297
+ };
5298
+ var RouterModule_1;
5299
+ RouterModule = RouterModule_1 = __decorate([
5300
+ core.NgModule({
5301
+ declarations: ROUTER_DIRECTIVES,
5302
+ exports: ROUTER_DIRECTIVES,
5303
+ entryComponents: [EmptyOutletComponent]
5304
+ }),
5305
+ __param(0, core.Optional()), __param(0, core.Inject(ROUTER_FORROOT_GUARD)), __param(1, core.Optional()),
5306
+ __metadata("design:paramtypes", [Object, Router])
5307
+ ], RouterModule);
5218
5308
  return RouterModule;
5219
5309
  }());
5220
5310
  function createRouterScroller(router, viewportScroller, config) {
@@ -5239,6 +5329,7 @@
5239
5329
  *
5240
5330
  * Registers routes.
5241
5331
  *
5332
+ * @usageNotes
5242
5333
  * ### Example
5243
5334
  *
5244
5335
  * ```
@@ -5379,13 +5470,10 @@
5379
5470
  RouterInitializer.prototype.isLegacyDisabled = function (opts) {
5380
5471
  return opts.initialNavigation === 'legacy_disabled' || opts.initialNavigation === false;
5381
5472
  };
5382
- RouterInitializer.decorators = [
5383
- { type: core.Injectable }
5384
- ];
5385
- /** @nocollapse */
5386
- RouterInitializer.ctorParameters = function () { return [
5387
- { type: core.Injector }
5388
- ]; };
5473
+ RouterInitializer = __decorate([
5474
+ core.Injectable(),
5475
+ __metadata("design:paramtypes", [core.Injector])
5476
+ ], RouterInitializer);
5389
5477
  return RouterInitializer;
5390
5478
  }());
5391
5479
  function getAppInitializer(r) {
@@ -5421,7 +5509,7 @@
5421
5509
  * Use of this source code is governed by an MIT-style license that can be
5422
5510
  * found in the LICENSE file at https://angular.io/license
5423
5511
  */
5424
- var VERSION = new core.Version('6.1.6');
5512
+ var VERSION = new core.Version('6.1.10');
5425
5513
 
5426
5514
  /**
5427
5515
  * @license