@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
  */
@@ -147,6 +147,7 @@ function setupTestingRouter(urlSerializer, contexts, location, loader, compiler,
147
147
  * It provides spy implementations of `Location`, `LocationStrategy`, and {\@link
148
148
  * NgModuleFactoryLoader}.
149
149
  *
150
+ * \@usageNotes
150
151
  * ### Example
151
152
  *
152
153
  * ```
@@ -1 +1 @@
1
- {"version":3,"file":"testing.js","sources":["../testing/src/router_testing_module.ts","../testing/testing.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {Location, LocationStrategy} from '@angular/common';\nimport {MockLocationStrategy, SpyLocation} from '@angular/common/testing';\nimport {Compiler, Injectable, Injector, ModuleWithProviders, NgModule, NgModuleFactory, NgModuleFactoryLoader, Optional} from '@angular/core';\nimport {ChildrenOutletContexts, ExtraOptions, NoPreloading, PreloadingStrategy, ROUTER_CONFIGURATION, ROUTES, Route, Router, RouterModule, Routes, UrlHandlingStrategy, UrlSerializer, provideRoutes, ɵROUTER_PROVIDERS as ROUTER_PROVIDERS, ɵflatten as flatten} from '@angular/router';\n\n\n\n/**\n * @description\n *\n * Allows to simulate the loading of ng modules in tests.\n *\n * ```\n * const loader = TestBed.get(NgModuleFactoryLoader);\n *\n * @Component({template: 'lazy-loaded'})\n * class LazyLoadedComponent {}\n * @NgModule({\n * declarations: [LazyLoadedComponent],\n * imports: [RouterModule.forChild([{path: 'loaded', component: LazyLoadedComponent}])]\n * })\n *\n * class LoadedModule {}\n *\n * // sets up stubbedModules\n * loader.stubbedModules = {lazyModule: LoadedModule};\n *\n * router.resetConfig([\n * {path: 'lazy', loadChildren: 'lazyModule'},\n * ]);\n *\n * router.navigateByUrl('/lazy/loaded');\n * ```\n *\n *\n */\n@Injectable()\nexport class SpyNgModuleFactoryLoader implements NgModuleFactoryLoader {\n /**\n * @docsNotRequired\n */\n private _stubbedModules: {[path: string]: Promise<NgModuleFactory<any>>} = {};\n\n /**\n * @docsNotRequired\n */\n set stubbedModules(modules: {[path: string]: any}) {\n const res: {[path: string]: any} = {};\n for (const t of Object.keys(modules)) {\n res[t] = this.compiler.compileModuleAsync(modules[t]);\n }\n this._stubbedModules = res;\n }\n\n /**\n * @docsNotRequired\n */\n get stubbedModules(): {[path: string]: any} { return this._stubbedModules; }\n\n constructor(private compiler: Compiler) {}\n\n load(path: string): Promise<NgModuleFactory<any>> {\n if (this._stubbedModules[path]) {\n return this._stubbedModules[path];\n } else {\n return <any>Promise.reject(new Error(`Cannot find module ${path}`));\n }\n }\n}\n\nfunction isUrlHandlingStrategy(opts: ExtraOptions | UrlHandlingStrategy):\n opts is UrlHandlingStrategy {\n // This property check is needed because UrlHandlingStrategy is an interface and doesn't exist at\n // runtime.\n return 'shouldProcessUrl' in opts;\n}\n\n/**\n * Router setup factory function used for testing.\n *\n *\n */\nexport function setupTestingRouter(\n urlSerializer: UrlSerializer, contexts: ChildrenOutletContexts, location: Location,\n loader: NgModuleFactoryLoader, compiler: Compiler, injector: Injector, routes: Route[][],\n opts?: ExtraOptions, urlHandlingStrategy?: UrlHandlingStrategy): Router;\n\n/**\n * Router setup factory function used for testing.\n *\n * @deprecated As of v5.2. The 2nd-to-last argument should be `ExtraOptions`, not\n * `UrlHandlingStrategy`\n */\nexport function setupTestingRouter(\n urlSerializer: UrlSerializer, contexts: ChildrenOutletContexts, location: Location,\n loader: NgModuleFactoryLoader, compiler: Compiler, injector: Injector, routes: Route[][],\n urlHandlingStrategy?: UrlHandlingStrategy): Router;\n\n/**\n * Router setup factory function used for testing.\n *\n *\n */\nexport function setupTestingRouter(\n urlSerializer: UrlSerializer, contexts: ChildrenOutletContexts, location: Location,\n loader: NgModuleFactoryLoader, compiler: Compiler, injector: Injector, routes: Route[][],\n opts?: ExtraOptions | UrlHandlingStrategy, urlHandlingStrategy?: UrlHandlingStrategy) {\n const router = new Router(\n null !, urlSerializer, contexts, location, injector, loader, compiler, flatten(routes));\n if (opts) {\n // Handle deprecated argument ordering.\n if (isUrlHandlingStrategy(opts)) {\n router.urlHandlingStrategy = opts;\n } else {\n // Handle ExtraOptions\n\n if (opts.malformedUriErrorHandler) {\n router.malformedUriErrorHandler = opts.malformedUriErrorHandler;\n }\n\n if (opts.paramsInheritanceStrategy) {\n router.paramsInheritanceStrategy = opts.paramsInheritanceStrategy;\n }\n }\n }\n\n if (urlHandlingStrategy) {\n router.urlHandlingStrategy = urlHandlingStrategy;\n }\n return router;\n}\n\n/**\n * @description\n *\n * Sets up the router to be used for testing.\n *\n * The modules sets up the router to be used for testing.\n * It provides spy implementations of `Location`, `LocationStrategy`, and {@link\n * NgModuleFactoryLoader}.\n *\n * ### Example\n *\n * ```\n * beforeEach(() => {\n * TestBed.configureTestModule({\n * imports: [\n * RouterTestingModule.withRoutes(\n * [{path: '', component: BlankCmp}, {path: 'simple', component: SimpleCmp}]\n * )\n * ]\n * });\n * });\n * ```\n *\n *\n */\n@NgModule({\n exports: [RouterModule],\n providers: [\n ROUTER_PROVIDERS, {provide: Location, useClass: SpyLocation},\n {provide: LocationStrategy, useClass: MockLocationStrategy},\n {provide: NgModuleFactoryLoader, useClass: SpyNgModuleFactoryLoader}, {\n provide: Router,\n useFactory: setupTestingRouter,\n deps: [\n UrlSerializer, ChildrenOutletContexts, Location, NgModuleFactoryLoader, Compiler, Injector,\n ROUTES, ROUTER_CONFIGURATION, [UrlHandlingStrategy, new Optional()]\n ]\n },\n {provide: PreloadingStrategy, useExisting: NoPreloading}, provideRoutes([])\n ]\n})\nexport class RouterTestingModule {\n static withRoutes(routes: Routes, config?: ExtraOptions):\n ModuleWithProviders<RouterTestingModule> {\n return {\n ngModule: RouterTestingModule,\n providers: [\n provideRoutes(routes),\n {provide: ROUTER_CONFIGURATION, useValue: config ? config : {}},\n ]\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["flatten","ROUTER_PROVIDERS"],"mappings":"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"}
1
+ {"version":3,"file":"testing.js","sources":["../testing/src/router_testing_module.ts","../testing/testing.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {Location, LocationStrategy} from '@angular/common';\nimport {MockLocationStrategy, SpyLocation} from '@angular/common/testing';\nimport {Compiler, Injectable, Injector, ModuleWithProviders, NgModule, NgModuleFactory, NgModuleFactoryLoader, Optional} from '@angular/core';\nimport {ChildrenOutletContexts, ExtraOptions, NoPreloading, PreloadingStrategy, ROUTER_CONFIGURATION, ROUTES, Route, Router, RouterModule, Routes, UrlHandlingStrategy, UrlSerializer, provideRoutes, ɵROUTER_PROVIDERS as ROUTER_PROVIDERS, ɵflatten as flatten} from '@angular/router';\n\n\n\n/**\n * @description\n *\n * Allows to simulate the loading of ng modules in tests.\n *\n * ```\n * const loader = TestBed.get(NgModuleFactoryLoader);\n *\n * @Component({template: 'lazy-loaded'})\n * class LazyLoadedComponent {}\n * @NgModule({\n * declarations: [LazyLoadedComponent],\n * imports: [RouterModule.forChild([{path: 'loaded', component: LazyLoadedComponent}])]\n * })\n *\n * class LoadedModule {}\n *\n * // sets up stubbedModules\n * loader.stubbedModules = {lazyModule: LoadedModule};\n *\n * router.resetConfig([\n * {path: 'lazy', loadChildren: 'lazyModule'},\n * ]);\n *\n * router.navigateByUrl('/lazy/loaded');\n * ```\n *\n *\n */\n@Injectable()\nexport class SpyNgModuleFactoryLoader implements NgModuleFactoryLoader {\n /**\n * @docsNotRequired\n */\n private _stubbedModules: {[path: string]: Promise<NgModuleFactory<any>>} = {};\n\n /**\n * @docsNotRequired\n */\n set stubbedModules(modules: {[path: string]: any}) {\n const res: {[path: string]: any} = {};\n for (const t of Object.keys(modules)) {\n res[t] = this.compiler.compileModuleAsync(modules[t]);\n }\n this._stubbedModules = res;\n }\n\n /**\n * @docsNotRequired\n */\n get stubbedModules(): {[path: string]: any} { return this._stubbedModules; }\n\n constructor(private compiler: Compiler) {}\n\n load(path: string): Promise<NgModuleFactory<any>> {\n if (this._stubbedModules[path]) {\n return this._stubbedModules[path];\n } else {\n return <any>Promise.reject(new Error(`Cannot find module ${path}`));\n }\n }\n}\n\nfunction isUrlHandlingStrategy(opts: ExtraOptions | UrlHandlingStrategy):\n opts is UrlHandlingStrategy {\n // This property check is needed because UrlHandlingStrategy is an interface and doesn't exist at\n // runtime.\n return 'shouldProcessUrl' in opts;\n}\n\n/**\n * Router setup factory function used for testing.\n *\n *\n */\nexport function setupTestingRouter(\n urlSerializer: UrlSerializer, contexts: ChildrenOutletContexts, location: Location,\n loader: NgModuleFactoryLoader, compiler: Compiler, injector: Injector, routes: Route[][],\n opts?: ExtraOptions, urlHandlingStrategy?: UrlHandlingStrategy): Router;\n\n/**\n * Router setup factory function used for testing.\n *\n * @deprecated As of v5.2. The 2nd-to-last argument should be `ExtraOptions`, not\n * `UrlHandlingStrategy`\n */\nexport function setupTestingRouter(\n urlSerializer: UrlSerializer, contexts: ChildrenOutletContexts, location: Location,\n loader: NgModuleFactoryLoader, compiler: Compiler, injector: Injector, routes: Route[][],\n urlHandlingStrategy?: UrlHandlingStrategy): Router;\n\n/**\n * Router setup factory function used for testing.\n *\n *\n */\nexport function setupTestingRouter(\n urlSerializer: UrlSerializer, contexts: ChildrenOutletContexts, location: Location,\n loader: NgModuleFactoryLoader, compiler: Compiler, injector: Injector, routes: Route[][],\n opts?: ExtraOptions | UrlHandlingStrategy, urlHandlingStrategy?: UrlHandlingStrategy) {\n const router = new Router(\n null !, urlSerializer, contexts, location, injector, loader, compiler, flatten(routes));\n if (opts) {\n // Handle deprecated argument ordering.\n if (isUrlHandlingStrategy(opts)) {\n router.urlHandlingStrategy = opts;\n } else {\n // Handle ExtraOptions\n\n if (opts.malformedUriErrorHandler) {\n router.malformedUriErrorHandler = opts.malformedUriErrorHandler;\n }\n\n if (opts.paramsInheritanceStrategy) {\n router.paramsInheritanceStrategy = opts.paramsInheritanceStrategy;\n }\n }\n }\n\n if (urlHandlingStrategy) {\n router.urlHandlingStrategy = urlHandlingStrategy;\n }\n return router;\n}\n\n/**\n * @description\n *\n * Sets up the router to be used for testing.\n *\n * The modules sets up the router to be used for testing.\n * It provides spy implementations of `Location`, `LocationStrategy`, and {@link\n * NgModuleFactoryLoader}.\n *\n * @usageNotes\n * ### Example\n *\n * ```\n * beforeEach(() => {\n * TestBed.configureTestModule({\n * imports: [\n * RouterTestingModule.withRoutes(\n * [{path: '', component: BlankCmp}, {path: 'simple', component: SimpleCmp}]\n * )\n * ]\n * });\n * });\n * ```\n *\n *\n */\n@NgModule({\n exports: [RouterModule],\n providers: [\n ROUTER_PROVIDERS, {provide: Location, useClass: SpyLocation},\n {provide: LocationStrategy, useClass: MockLocationStrategy},\n {provide: NgModuleFactoryLoader, useClass: SpyNgModuleFactoryLoader}, {\n provide: Router,\n useFactory: setupTestingRouter,\n deps: [\n UrlSerializer, ChildrenOutletContexts, Location, NgModuleFactoryLoader, Compiler, Injector,\n ROUTES, ROUTER_CONFIGURATION, [UrlHandlingStrategy, new Optional()]\n ]\n },\n {provide: PreloadingStrategy, useExisting: NoPreloading}, provideRoutes([])\n ]\n})\nexport class RouterTestingModule {\n static withRoutes(routes: Routes, config?: ExtraOptions):\n ModuleWithProviders<RouterTestingModule> {\n return {\n ngModule: RouterTestingModule,\n providers: [\n provideRoutes(routes),\n {provide: ROUTER_CONFIGURATION, useValue: config ? config : {}},\n ]\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["flatten","ROUTER_PROVIDERS"],"mappings":"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"}
@@ -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
  */
package/fesm5/router.js CHANGED
@@ -1,11 +1,11 @@
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
  */
6
6
 
7
- import { __values, __assign, __extends, __spread } from 'tslib';
8
- import { Component, ɵisObservable, ɵisPromise, NgModuleRef, InjectionToken, NgModuleFactory, isDevMode, Attribute, Directive, ElementRef, HostBinding, HostListener, Input, Renderer2, ChangeDetectorRef, ContentChildren, ComponentFactoryResolver, EventEmitter, Output, ViewContainerRef, Compiler, Injectable, Injector, NgModuleFactoryLoader, ANALYZE_FOR_ENTRY_COMPONENTS, APP_BOOTSTRAP_LISTENER, APP_INITIALIZER, ApplicationRef, Inject, NgModule, NgProbeToken, Optional, SkipSelf, SystemJsNgModuleLoader, Version } from '@angular/core';
7
+ import { __values, __decorate, __param, __metadata, __extends, __assign, __spread } from 'tslib';
8
+ import { Component, ɵisObservable, ɵisPromise, NgModuleRef, InjectionToken, NgModuleFactory, NgZone, isDevMode, ɵConsole, Attribute, Directive, ElementRef, HostBinding, HostListener, Input, Renderer2, ChangeDetectorRef, ContentChildren, QueryList, ComponentFactoryResolver, EventEmitter, Output, ViewContainerRef, Compiler, Injectable, Injector, NgModuleFactoryLoader, ANALYZE_FOR_ENTRY_COMPONENTS, APP_BOOTSTRAP_LISTENER, APP_INITIALIZER, ApplicationRef, Inject, NgModule, NgProbeToken, Optional, SkipSelf, SystemJsNgModuleLoader, Version } from '@angular/core';
9
9
  import { from, of, EmptyError, Observable, BehaviorSubject, Subject } from 'rxjs';
10
10
  import { concatAll, every, last, map, mergeAll, catchError, first, mergeMap, concatMap, reduce, filter } from 'rxjs/operators';
11
11
  import { LocationStrategy, APP_BASE_HREF, HashLocationStrategy, LOCATION_INITIALIZED, Location, PathLocationStrategy, PlatformLocation, ViewportScroller } from '@angular/common';
@@ -461,9 +461,9 @@ var Scroll = /** @class */ (function () {
461
461
  var EmptyOutletComponent = /** @class */ (function () {
462
462
  function EmptyOutletComponent() {
463
463
  }
464
- EmptyOutletComponent.decorators = [
465
- { type: Component, args: [{ template: "<router-outlet></router-outlet>" }] }
466
- ];
464
+ EmptyOutletComponent = __decorate([
465
+ Component({ template: "<router-outlet></router-outlet>" })
466
+ ], EmptyOutletComponent);
467
467
  return EmptyOutletComponent;
468
468
  }());
469
469
 
@@ -823,6 +823,7 @@ function containsSegmentGroupHelper(container, containee, containeePaths) {
823
823
  * serialized tree.
824
824
  * UrlTree is a data structure that provides a lot of affordances in dealing with URLs
825
825
  *
826
+ * @usageNotes
826
827
  * ### Example
827
828
  *
828
829
  * ```
@@ -912,7 +913,8 @@ var UrlSegmentGroup = /** @class */ (function () {
912
913
  * A UrlSegment is a part of a URL between the two slashes. It contains a path and the matrix
913
914
  * parameters associated with the segment.
914
915
  *
915
- * ## Example
916
+ * @usageNotes
917
+ * ### Example
916
918
  *
917
919
  * ```
918
920
  * @Component({templateUrl:'template.html'})
@@ -1846,6 +1848,7 @@ function nodeChildrenAsMap(node) {
1846
1848
  * RouterState is a tree of activated routes. Every node in this tree knows about the "consumed" URL
1847
1849
  * segments, the extracted parameters, and the resolved data.
1848
1850
  *
1851
+ * @usageNotes
1849
1852
  * ### Example
1850
1853
  *
1851
1854
  * ```
@@ -2159,6 +2162,7 @@ var ActivatedRouteSnapshot = /** @class */ (function () {
2159
2162
  * This is a tree of activated route snapshots. Every node in this tree knows about
2160
2163
  * the "consumed" URL segments, the extracted parameters, and the resolved data.
2161
2164
  *
2165
+ * @usageNotes
2162
2166
  * ### Example
2163
2167
  *
2164
2168
  * ```
@@ -3345,6 +3349,7 @@ var Router = /** @class */ (function () {
3345
3349
  this.config = config;
3346
3350
  this.navigations = new BehaviorSubject(null);
3347
3351
  this.navigationId = 0;
3352
+ this.isNgZoneEnabled = false;
3348
3353
  this.events = new Subject();
3349
3354
  /**
3350
3355
  * Error handler that is invoked when a navigation errors.
@@ -3411,6 +3416,9 @@ var Router = /** @class */ (function () {
3411
3416
  var onLoadStart = function (r) { return _this.triggerEvent(new RouteConfigLoadStart(r)); };
3412
3417
  var onLoadEnd = function (r) { return _this.triggerEvent(new RouteConfigLoadEnd(r)); };
3413
3418
  this.ngModule = injector.get(NgModuleRef);
3419
+ this.console = injector.get(ɵConsole);
3420
+ var ngZone = injector.get(NgZone);
3421
+ this.isNgZoneEnabled = ngZone instanceof NgZone;
3414
3422
  this.resetConfig(config);
3415
3423
  this.currentUrlTree = createEmptyUrlTree();
3416
3424
  this.rawUrlTree = this.currentUrlTree;
@@ -3463,11 +3471,13 @@ var Router = /** @class */ (function () {
3463
3471
  configurable: true
3464
3472
  });
3465
3473
  /** @internal */
3466
- Router.prototype.triggerEvent = function (e) { this.events.next(e); };
3474
+ Router.prototype.triggerEvent = function (event) { this.events.next(event); };
3467
3475
  /**
3468
3476
  * Resets the configuration used for navigation and generating links.
3469
3477
  *
3470
- * ### Usage
3478
+ * @usageNotes
3479
+ *
3480
+ * ### Example
3471
3481
  *
3472
3482
  * ```
3473
3483
  * router.resetConfig([
@@ -3499,7 +3509,9 @@ var Router = /** @class */ (function () {
3499
3509
  * When given an activate route, applies the given commands starting from the route.
3500
3510
  * When not given a route, applies the given command starting from the root.
3501
3511
  *
3502
- * ### Usage
3512
+ * @usageNotes
3513
+ *
3514
+ * ### Example
3503
3515
  *
3504
3516
  * ```
3505
3517
  * // create /team/33/user/11
@@ -3571,7 +3583,9 @@ var Router = /** @class */ (function () {
3571
3583
  * - resolves to 'false' when navigation fails,
3572
3584
  * - is rejected when an error happens.
3573
3585
  *
3574
- * ### Usage
3586
+ * @usageNotes
3587
+ *
3588
+ * ### Example
3575
3589
  *
3576
3590
  * ```
3577
3591
  * router.navigateByUrl("/team/33/user/11");
@@ -3580,11 +3594,16 @@ var Router = /** @class */ (function () {
3580
3594
  * router.navigateByUrl("/team/33/user/11", { skipLocationChange: true });
3581
3595
  * ```
3582
3596
  *
3583
- * In opposite to `navigate`, `navigateByUrl` takes a whole URL
3584
- * and does not apply any delta to the current one.
3597
+ * Since `navigateByUrl()` takes an absolute URL as the first parameter,
3598
+ * it will not apply any delta to the current URL and ignores any properties
3599
+ * in the second parameter (the `NavigationExtras`) that would change the
3600
+ * provided URL.
3585
3601
  */
3586
3602
  Router.prototype.navigateByUrl = function (url, extras) {
3587
3603
  if (extras === void 0) { extras = { skipLocationChange: false }; }
3604
+ if (isDevMode() && this.isNgZoneEnabled && !NgZone.isInAngularZone()) {
3605
+ this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");
3606
+ }
3588
3607
  var urlTree = url instanceof UrlTree ? url : this.parseUrl(url);
3589
3608
  var mergedTree = this.urlHandlingStrategy.merge(urlTree, this.rawUrlTree);
3590
3609
  return this.scheduleNavigation(mergedTree, 'imperative', null, extras);
@@ -3598,7 +3617,9 @@ var Router = /** @class */ (function () {
3598
3617
  * - resolves to 'false' when navigation fails,
3599
3618
  * - is rejected when an error happens.
3600
3619
  *
3601
- * ### Usage
3620
+ * @usageNotes
3621
+ *
3622
+ * ### Example
3602
3623
  *
3603
3624
  * ```
3604
3625
  * router.navigate(['team', 33, 'user', 11], {relativeTo: route});
@@ -3607,8 +3628,9 @@ var Router = /** @class */ (function () {
3607
3628
  * router.navigate(['team', 33, 'user', 11], {relativeTo: route, skipLocationChange: true});
3608
3629
  * ```
3609
3630
  *
3610
- * In opposite to `navigateByUrl`, `navigate` always takes a delta that is applied to the current
3611
- * URL.
3631
+ * The first parameter of `navigate()` is a delta to be applied to the current URL
3632
+ * or the one provided in the `relativeTo` property of the second parameter (the
3633
+ * `NavigationExtras`).
3612
3634
  */
3613
3635
  Router.prototype.navigate = function (commands, extras) {
3614
3636
  if (extras === void 0) { extras = { skipLocationChange: false }; }
@@ -4039,6 +4061,7 @@ var ActivateRoutes = /** @class */ (function () {
4039
4061
  else {
4040
4062
  var config = parentLoadedConfig(future.snapshot);
4041
4063
  var cmpFactoryResolver = config ? config.module.componentFactoryResolver : null;
4064
+ context.attachRef = null;
4042
4065
  context.route = future;
4043
4066
  context.resolver = cmpFactoryResolver;
4044
4067
  if (context.outlet) {
@@ -4216,28 +4239,51 @@ var RouterLink = /** @class */ (function () {
4216
4239
  enumerable: true,
4217
4240
  configurable: true
4218
4241
  });
4219
- RouterLink.decorators = [
4220
- { type: Directive, args: [{ selector: ':not(a)[routerLink]' },] }
4221
- ];
4222
- /** @nocollapse */
4223
- RouterLink.ctorParameters = function () { return [
4224
- { type: Router },
4225
- { type: ActivatedRoute },
4226
- { type: String, decorators: [{ type: Attribute, args: ['tabindex',] }] },
4227
- { type: Renderer2 },
4228
- { type: ElementRef }
4229
- ]; };
4230
- RouterLink.propDecorators = {
4231
- queryParams: [{ type: Input }],
4232
- fragment: [{ type: Input }],
4233
- queryParamsHandling: [{ type: Input }],
4234
- preserveFragment: [{ type: Input }],
4235
- skipLocationChange: [{ type: Input }],
4236
- replaceUrl: [{ type: Input }],
4237
- routerLink: [{ type: Input }],
4238
- preserveQueryParams: [{ type: Input }],
4239
- onClick: [{ type: HostListener, args: ['click',] }]
4240
- };
4242
+ __decorate([
4243
+ Input(),
4244
+ __metadata("design:type", Object)
4245
+ ], RouterLink.prototype, "queryParams", void 0);
4246
+ __decorate([
4247
+ Input(),
4248
+ __metadata("design:type", String)
4249
+ ], RouterLink.prototype, "fragment", void 0);
4250
+ __decorate([
4251
+ Input(),
4252
+ __metadata("design:type", String)
4253
+ ], RouterLink.prototype, "queryParamsHandling", void 0);
4254
+ __decorate([
4255
+ Input(),
4256
+ __metadata("design:type", Boolean)
4257
+ ], RouterLink.prototype, "preserveFragment", void 0);
4258
+ __decorate([
4259
+ Input(),
4260
+ __metadata("design:type", Boolean)
4261
+ ], RouterLink.prototype, "skipLocationChange", void 0);
4262
+ __decorate([
4263
+ Input(),
4264
+ __metadata("design:type", Boolean)
4265
+ ], RouterLink.prototype, "replaceUrl", void 0);
4266
+ __decorate([
4267
+ Input(),
4268
+ __metadata("design:type", Object),
4269
+ __metadata("design:paramtypes", [Object])
4270
+ ], RouterLink.prototype, "routerLink", null);
4271
+ __decorate([
4272
+ Input(),
4273
+ __metadata("design:type", Boolean),
4274
+ __metadata("design:paramtypes", [Boolean])
4275
+ ], RouterLink.prototype, "preserveQueryParams", null);
4276
+ __decorate([
4277
+ HostListener('click'),
4278
+ __metadata("design:type", Function),
4279
+ __metadata("design:paramtypes", []),
4280
+ __metadata("design:returntype", Boolean)
4281
+ ], RouterLink.prototype, "onClick", null);
4282
+ RouterLink = __decorate([
4283
+ Directive({ selector: ':not(a)[routerLink]' }),
4284
+ __param(2, Attribute('tabindex')),
4285
+ __metadata("design:paramtypes", [Router, ActivatedRoute, String, Renderer2, ElementRef])
4286
+ ], RouterLink);
4241
4287
  return RouterLink;
4242
4288
  }());
4243
4289
  /**
@@ -4319,28 +4365,59 @@ var RouterLinkWithHref = /** @class */ (function () {
4319
4365
  enumerable: true,
4320
4366
  configurable: true
4321
4367
  });
4322
- RouterLinkWithHref.decorators = [
4323
- { type: Directive, args: [{ selector: 'a[routerLink]' },] }
4324
- ];
4325
- /** @nocollapse */
4326
- RouterLinkWithHref.ctorParameters = function () { return [
4327
- { type: Router },
4328
- { type: ActivatedRoute },
4329
- { type: LocationStrategy }
4330
- ]; };
4331
- RouterLinkWithHref.propDecorators = {
4332
- target: [{ type: HostBinding, args: ['attr.target',] }, { type: Input }],
4333
- queryParams: [{ type: Input }],
4334
- fragment: [{ type: Input }],
4335
- queryParamsHandling: [{ type: Input }],
4336
- preserveFragment: [{ type: Input }],
4337
- skipLocationChange: [{ type: Input }],
4338
- replaceUrl: [{ type: Input }],
4339
- href: [{ type: HostBinding }],
4340
- routerLink: [{ type: Input }],
4341
- preserveQueryParams: [{ type: Input }],
4342
- onClick: [{ type: HostListener, args: ['click', ['$event.button', '$event.ctrlKey', '$event.metaKey', '$event.shiftKey'],] }]
4343
- };
4368
+ __decorate([
4369
+ HostBinding('attr.target'), Input(),
4370
+ __metadata("design:type", String)
4371
+ ], RouterLinkWithHref.prototype, "target", void 0);
4372
+ __decorate([
4373
+ Input(),
4374
+ __metadata("design:type", Object)
4375
+ ], RouterLinkWithHref.prototype, "queryParams", void 0);
4376
+ __decorate([
4377
+ Input(),
4378
+ __metadata("design:type", String)
4379
+ ], RouterLinkWithHref.prototype, "fragment", void 0);
4380
+ __decorate([
4381
+ Input(),
4382
+ __metadata("design:type", String)
4383
+ ], RouterLinkWithHref.prototype, "queryParamsHandling", void 0);
4384
+ __decorate([
4385
+ Input(),
4386
+ __metadata("design:type", Boolean)
4387
+ ], RouterLinkWithHref.prototype, "preserveFragment", void 0);
4388
+ __decorate([
4389
+ Input(),
4390
+ __metadata("design:type", Boolean)
4391
+ ], RouterLinkWithHref.prototype, "skipLocationChange", void 0);
4392
+ __decorate([
4393
+ Input(),
4394
+ __metadata("design:type", Boolean)
4395
+ ], RouterLinkWithHref.prototype, "replaceUrl", void 0);
4396
+ __decorate([
4397
+ HostBinding(),
4398
+ __metadata("design:type", String)
4399
+ ], RouterLinkWithHref.prototype, "href", void 0);
4400
+ __decorate([
4401
+ Input(),
4402
+ __metadata("design:type", Object),
4403
+ __metadata("design:paramtypes", [Object])
4404
+ ], RouterLinkWithHref.prototype, "routerLink", null);
4405
+ __decorate([
4406
+ Input(),
4407
+ __metadata("design:type", Boolean),
4408
+ __metadata("design:paramtypes", [Boolean])
4409
+ ], RouterLinkWithHref.prototype, "preserveQueryParams", null);
4410
+ __decorate([
4411
+ HostListener('click', ['$event.button', '$event.ctrlKey', '$event.metaKey', '$event.shiftKey']),
4412
+ __metadata("design:type", Function),
4413
+ __metadata("design:paramtypes", [Number, Boolean, Boolean, Boolean]),
4414
+ __metadata("design:returntype", Boolean)
4415
+ ], RouterLinkWithHref.prototype, "onClick", null);
4416
+ RouterLinkWithHref = __decorate([
4417
+ Directive({ selector: 'a[routerLink]' }),
4418
+ __metadata("design:paramtypes", [Router, ActivatedRoute,
4419
+ LocationStrategy])
4420
+ ], RouterLinkWithHref);
4344
4421
  return RouterLinkWithHref;
4345
4422
  }());
4346
4423
  function attrBoolValue(s) {
@@ -4472,25 +4549,31 @@ var RouterLinkActive = /** @class */ (function () {
4472
4549
  return this.links.some(this.isLinkActive(this.router)) ||
4473
4550
  this.linksWithHrefs.some(this.isLinkActive(this.router));
4474
4551
  };
4475
- RouterLinkActive.decorators = [
4476
- { type: Directive, args: [{
4477
- selector: '[routerLinkActive]',
4478
- exportAs: 'routerLinkActive',
4479
- },] }
4480
- ];
4481
- /** @nocollapse */
4482
- RouterLinkActive.ctorParameters = function () { return [
4483
- { type: Router },
4484
- { type: ElementRef },
4485
- { type: Renderer2 },
4486
- { type: ChangeDetectorRef }
4487
- ]; };
4488
- RouterLinkActive.propDecorators = {
4489
- links: [{ type: ContentChildren, args: [RouterLink, { descendants: true },] }],
4490
- linksWithHrefs: [{ type: ContentChildren, args: [RouterLinkWithHref, { descendants: true },] }],
4491
- routerLinkActiveOptions: [{ type: Input }],
4492
- routerLinkActive: [{ type: Input }]
4493
- };
4552
+ __decorate([
4553
+ ContentChildren(RouterLink, { descendants: true }),
4554
+ __metadata("design:type", QueryList)
4555
+ ], RouterLinkActive.prototype, "links", void 0);
4556
+ __decorate([
4557
+ ContentChildren(RouterLinkWithHref, { descendants: true }),
4558
+ __metadata("design:type", QueryList)
4559
+ ], RouterLinkActive.prototype, "linksWithHrefs", void 0);
4560
+ __decorate([
4561
+ Input(),
4562
+ __metadata("design:type", Object)
4563
+ ], RouterLinkActive.prototype, "routerLinkActiveOptions", void 0);
4564
+ __decorate([
4565
+ Input(),
4566
+ __metadata("design:type", Object),
4567
+ __metadata("design:paramtypes", [Object])
4568
+ ], RouterLinkActive.prototype, "routerLinkActive", null);
4569
+ RouterLinkActive = __decorate([
4570
+ Directive({
4571
+ selector: '[routerLinkActive]',
4572
+ exportAs: 'routerLinkActive',
4573
+ }),
4574
+ __metadata("design:paramtypes", [Router, ElementRef, Renderer2,
4575
+ ChangeDetectorRef])
4576
+ ], RouterLinkActive);
4494
4577
  return RouterLinkActive;
4495
4578
  }());
4496
4579
 
@@ -4705,21 +4788,20 @@ var RouterOutlet = /** @class */ (function () {
4705
4788
  this.changeDetector.markForCheck();
4706
4789
  this.activateEvents.emit(this.activated.instance);
4707
4790
  };
4708
- RouterOutlet.decorators = [
4709
- { type: Directive, args: [{ selector: 'router-outlet', exportAs: 'outlet' },] }
4710
- ];
4711
- /** @nocollapse */
4712
- RouterOutlet.ctorParameters = function () { return [
4713
- { type: ChildrenOutletContexts },
4714
- { type: ViewContainerRef },
4715
- { type: ComponentFactoryResolver },
4716
- { type: String, decorators: [{ type: Attribute, args: ['name',] }] },
4717
- { type: ChangeDetectorRef }
4718
- ]; };
4719
- RouterOutlet.propDecorators = {
4720
- activateEvents: [{ type: Output, args: ['activate',] }],
4721
- deactivateEvents: [{ type: Output, args: ['deactivate',] }]
4722
- };
4791
+ __decorate([
4792
+ Output('activate'),
4793
+ __metadata("design:type", Object)
4794
+ ], RouterOutlet.prototype, "activateEvents", void 0);
4795
+ __decorate([
4796
+ Output('deactivate'),
4797
+ __metadata("design:type", Object)
4798
+ ], RouterOutlet.prototype, "deactivateEvents", void 0);
4799
+ RouterOutlet = __decorate([
4800
+ Directive({ selector: 'router-outlet', exportAs: 'outlet' }),
4801
+ __param(3, Attribute('name')),
4802
+ __metadata("design:paramtypes", [ChildrenOutletContexts, ViewContainerRef,
4803
+ ComponentFactoryResolver, String, ChangeDetectorRef])
4804
+ ], RouterOutlet);
4723
4805
  return RouterOutlet;
4724
4806
  }());
4725
4807
  var OutletInjector = /** @class */ (function () {
@@ -4869,17 +4951,11 @@ var RouterPreloader = /** @class */ (function () {
4869
4951
  }));
4870
4952
  });
4871
4953
  };
4872
- RouterPreloader.decorators = [
4873
- { type: Injectable }
4874
- ];
4875
- /** @nocollapse */
4876
- RouterPreloader.ctorParameters = function () { return [
4877
- { type: Router },
4878
- { type: NgModuleFactoryLoader },
4879
- { type: Compiler },
4880
- { type: Injector },
4881
- { type: PreloadingStrategy }
4882
- ]; };
4954
+ RouterPreloader = __decorate([
4955
+ Injectable(),
4956
+ __metadata("design:paramtypes", [Router, NgModuleFactoryLoader, Compiler,
4957
+ Injector, PreloadingStrategy])
4958
+ ], RouterPreloader);
4883
4959
  return RouterPreloader;
4884
4960
  }());
4885
4961
 
@@ -5074,6 +5150,7 @@ var RouterModule = /** @class */ (function () {
5074
5150
  // Note: We are injecting the Router so it gets created eagerly...
5075
5151
  function RouterModule(guard, router) {
5076
5152
  }
5153
+ RouterModule_1 = RouterModule;
5077
5154
  /**
5078
5155
  * Creates a module with all the router providers and directives. It also optionally sets up an
5079
5156
  * application listener to perform an initial navigation.
@@ -5092,7 +5169,7 @@ var RouterModule = /** @class */ (function () {
5092
5169
  */
5093
5170
  RouterModule.forRoot = function (routes, config) {
5094
5171
  return {
5095
- ngModule: RouterModule,
5172
+ ngModule: RouterModule_1,
5096
5173
  providers: [
5097
5174
  ROUTER_PROVIDERS,
5098
5175
  provideRoutes(routes),
@@ -5128,20 +5205,18 @@ var RouterModule = /** @class */ (function () {
5128
5205
  * Creates a module with all the router directives and a provider registering routes.
5129
5206
  */
5130
5207
  RouterModule.forChild = function (routes) {
5131
- return { ngModule: RouterModule, providers: [provideRoutes(routes)] };
5132
- };
5133
- RouterModule.decorators = [
5134
- { type: NgModule, args: [{
5135
- declarations: ROUTER_DIRECTIVES,
5136
- exports: ROUTER_DIRECTIVES,
5137
- entryComponents: [EmptyOutletComponent]
5138
- },] }
5139
- ];
5140
- /** @nocollapse */
5141
- RouterModule.ctorParameters = function () { return [
5142
- { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [ROUTER_FORROOT_GUARD,] }] },
5143
- { type: Router, decorators: [{ type: Optional }] }
5144
- ]; };
5208
+ return { ngModule: RouterModule_1, providers: [provideRoutes(routes)] };
5209
+ };
5210
+ var RouterModule_1;
5211
+ RouterModule = RouterModule_1 = __decorate([
5212
+ NgModule({
5213
+ declarations: ROUTER_DIRECTIVES,
5214
+ exports: ROUTER_DIRECTIVES,
5215
+ entryComponents: [EmptyOutletComponent]
5216
+ }),
5217
+ __param(0, Optional()), __param(0, Inject(ROUTER_FORROOT_GUARD)), __param(1, Optional()),
5218
+ __metadata("design:paramtypes", [Object, Router])
5219
+ ], RouterModule);
5145
5220
  return RouterModule;
5146
5221
  }());
5147
5222
  function createRouterScroller(router, viewportScroller, config) {
@@ -5166,6 +5241,7 @@ function provideForRootGuard(router) {
5166
5241
  *
5167
5242
  * Registers routes.
5168
5243
  *
5244
+ * @usageNotes
5169
5245
  * ### Example
5170
5246
  *
5171
5247
  * ```
@@ -5306,13 +5382,10 @@ var RouterInitializer = /** @class */ (function () {
5306
5382
  RouterInitializer.prototype.isLegacyDisabled = function (opts) {
5307
5383
  return opts.initialNavigation === 'legacy_disabled' || opts.initialNavigation === false;
5308
5384
  };
5309
- RouterInitializer.decorators = [
5310
- { type: Injectable }
5311
- ];
5312
- /** @nocollapse */
5313
- RouterInitializer.ctorParameters = function () { return [
5314
- { type: Injector }
5315
- ]; };
5385
+ RouterInitializer = __decorate([
5386
+ Injectable(),
5387
+ __metadata("design:paramtypes", [Injector])
5388
+ ], RouterInitializer);
5316
5389
  return RouterInitializer;
5317
5390
  }());
5318
5391
  function getAppInitializer(r) {
@@ -5348,7 +5421,7 @@ function provideRouterInitializer() {
5348
5421
  * Use of this source code is governed by an MIT-style license that can be
5349
5422
  * found in the LICENSE file at https://angular.io/license
5350
5423
  */
5351
- var VERSION = new Version('6.1.6');
5424
+ var VERSION = new Version('6.1.10');
5352
5425
 
5353
5426
  /**
5354
5427
  * @license