@angular/router 7.0.0-rc.1 → 7.0.3
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/router-testing.umd.js +4 -4
- package/bundles/router-testing.umd.js.map +1 -1
- package/bundles/router-testing.umd.min.js +1 -1
- package/bundles/router-testing.umd.min.js.map +1 -1
- package/bundles/router-upgrade.umd.js +3 -3
- package/bundles/router-upgrade.umd.js.map +1 -1
- package/bundles/router-upgrade.umd.min.js +1 -1
- package/bundles/router-upgrade.umd.min.js.map +1 -1
- package/bundles/router.umd.js +56 -50
- package/bundles/router.umd.js.map +1 -1
- package/bundles/router.umd.min.js +4 -4
- package/bundles/router.umd.min.js.map +1 -1
- package/esm2015/src/config.js +2 -1
- package/esm2015/src/directives/router_link.js +3 -3
- package/esm2015/src/directives/router_link_active.js +2 -2
- package/esm2015/src/directives/router_outlet.js +2 -2
- package/esm2015/src/events.js +19 -17
- package/esm2015/src/interfaces.js +6 -5
- package/esm2015/src/route_reuse_strategy.js +2 -2
- package/esm2015/src/router.js +4 -3
- package/esm2015/src/router_config_loader.js +2 -2
- package/esm2015/src/router_module.js +6 -6
- package/esm2015/src/router_outlet_context.js +3 -3
- package/esm2015/src/router_preloader.js +5 -5
- package/esm2015/src/router_state.js +5 -5
- package/esm2015/src/shared.js +4 -4
- package/esm2015/src/url_handling_strategy.js +3 -3
- package/esm2015/src/url_tree.js +6 -6
- package/esm2015/src/utils/preactivation.js +3 -3
- package/esm2015/src/version.js +5 -3
- package/esm2015/testing/src/router_testing_module.js +4 -4
- package/esm2015/upgrade/src/upgrade.js +3 -3
- package/esm5/src/config.js +1 -1
- package/esm5/src/directives/router_link.js +3 -3
- package/esm5/src/directives/router_link_active.js +2 -2
- package/esm5/src/directives/router_outlet.js +2 -2
- package/esm5/src/events.js +19 -17
- package/esm5/src/interfaces.js +1 -1
- package/esm5/src/route_reuse_strategy.js +2 -2
- package/esm5/src/router.js +3 -2
- package/esm5/src/router_config_loader.js +2 -2
- package/esm5/src/router_module.js +5 -5
- package/esm5/src/router_outlet_context.js +3 -3
- package/esm5/src/router_preloader.js +5 -5
- package/esm5/src/router_state.js +5 -5
- package/esm5/src/shared.js +3 -3
- package/esm5/src/url_handling_strategy.js +3 -3
- package/esm5/src/url_tree.js +6 -6
- package/esm5/src/utils/preactivation.js +3 -3
- package/esm5/src/version.js +5 -2
- package/esm5/testing/src/router_testing_module.js +4 -4
- package/esm5/upgrade/src/upgrade.js +3 -3
- package/fesm2015/router.js +56 -51
- package/fesm2015/router.js.map +1 -1
- package/fesm2015/testing.js +4 -4
- package/fesm2015/testing.js.map +1 -1
- package/fesm2015/upgrade.js +3 -3
- package/fesm2015/upgrade.js.map +1 -1
- package/fesm5/router.js +56 -50
- package/fesm5/router.js.map +1 -1
- package/fesm5/testing.js +4 -4
- package/fesm5/testing.js.map +1 -1
- package/fesm5/upgrade.js +3 -3
- package/fesm5/upgrade.js.map +1 -1
- package/package.json +4 -4
- package/router.metadata.json +1 -1
- package/src/config.d.ts +9 -3
- package/src/directives/router_link.d.ts +2 -2
- package/src/directives/router_link_active.d.ts +1 -1
- package/src/directives/router_outlet.d.ts +1 -1
- package/src/events.d.ts +20 -18
- package/src/interfaces.d.ts +5 -4
- package/src/route_reuse_strategy.d.ts +2 -2
- package/src/router.d.ts +3 -3
- package/src/router_config_loader.d.ts +1 -1
- package/src/router_module.d.ts +6 -6
- package/src/router_outlet_context.d.ts +2 -2
- package/src/router_preloader.d.ts +4 -4
- package/src/router_state.d.ts +4 -4
- package/src/shared.d.ts +4 -4
- package/src/url_handling_strategy.d.ts +2 -2
- package/src/url_tree.d.ts +5 -5
- package/src/version.d.ts +3 -0
- package/testing/src/router_testing_module.d.ts +4 -3
- package/testing/testing.metadata.json +1 -1
- package/upgrade/src/upgrade.d.ts +2 -2
package/bundles/router.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v7.0.
|
|
2
|
+
* @license Angular v7.0.3
|
|
3
3
|
* (c) 2010-2018 Google, Inc. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
* }
|
|
125
125
|
* ```
|
|
126
126
|
*
|
|
127
|
-
* @
|
|
127
|
+
* @publicApi
|
|
128
128
|
*/
|
|
129
129
|
var RouterEvent = /** @class */ (function () {
|
|
130
130
|
function RouterEvent(
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
*
|
|
143
143
|
* Represents an event triggered when a navigation starts.
|
|
144
144
|
*
|
|
145
|
-
*
|
|
145
|
+
* @publicApi
|
|
146
146
|
*/
|
|
147
147
|
var NavigationStart = /** @class */ (function (_super) {
|
|
148
148
|
__extends(NavigationStart, _super);
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
*
|
|
172
172
|
* Represents an event triggered when a navigation ends successfully.
|
|
173
173
|
*
|
|
174
|
-
*
|
|
174
|
+
* @publicApi
|
|
175
175
|
*/
|
|
176
176
|
var NavigationEnd = /** @class */ (function (_super) {
|
|
177
177
|
__extends(NavigationEnd, _super);
|
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
*
|
|
198
198
|
* Represents an event triggered when a navigation is canceled.
|
|
199
199
|
*
|
|
200
|
-
*
|
|
200
|
+
* @publicApi
|
|
201
201
|
*/
|
|
202
202
|
var NavigationCancel = /** @class */ (function (_super) {
|
|
203
203
|
__extends(NavigationCancel, _super);
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
*
|
|
222
222
|
* Represents an event triggered when a navigation fails due to an unexpected error.
|
|
223
223
|
*
|
|
224
|
-
*
|
|
224
|
+
* @publicApi
|
|
225
225
|
*/
|
|
226
226
|
var NavigationError = /** @class */ (function (_super) {
|
|
227
227
|
__extends(NavigationError, _super);
|
|
@@ -247,7 +247,7 @@
|
|
|
247
247
|
*
|
|
248
248
|
* Represents an event triggered when routes are recognized.
|
|
249
249
|
*
|
|
250
|
-
*
|
|
250
|
+
* @publicApi
|
|
251
251
|
*/
|
|
252
252
|
var RoutesRecognized = /** @class */ (function (_super) {
|
|
253
253
|
__extends(RoutesRecognized, _super);
|
|
@@ -276,7 +276,7 @@
|
|
|
276
276
|
*
|
|
277
277
|
* Represents the start of the Guard phase of routing.
|
|
278
278
|
*
|
|
279
|
-
* @
|
|
279
|
+
* @publicApi
|
|
280
280
|
*/
|
|
281
281
|
var GuardsCheckStart = /** @class */ (function (_super) {
|
|
282
282
|
__extends(GuardsCheckStart, _super);
|
|
@@ -304,7 +304,7 @@
|
|
|
304
304
|
*
|
|
305
305
|
* Represents the end of the Guard phase of routing.
|
|
306
306
|
*
|
|
307
|
-
* @
|
|
307
|
+
* @publicApi
|
|
308
308
|
*/
|
|
309
309
|
var GuardsCheckEnd = /** @class */ (function (_super) {
|
|
310
310
|
__extends(GuardsCheckEnd, _super);
|
|
@@ -338,7 +338,7 @@
|
|
|
338
338
|
* in the "resolve" phase whether there's things to resolve or not. In the future this
|
|
339
339
|
* behavior may change to only run when there are things to be resolved.
|
|
340
340
|
*
|
|
341
|
-
* @
|
|
341
|
+
* @publicApi
|
|
342
342
|
*/
|
|
343
343
|
var ResolveStart = /** @class */ (function (_super) {
|
|
344
344
|
__extends(ResolveStart, _super);
|
|
@@ -367,7 +367,7 @@
|
|
|
367
367
|
* Represents the end of the Resolve phase of routing. See note on
|
|
368
368
|
* `ResolveStart` for use of this experimental API.
|
|
369
369
|
*
|
|
370
|
-
* @
|
|
370
|
+
* @publicApi
|
|
371
371
|
*/
|
|
372
372
|
var ResolveEnd = /** @class */ (function (_super) {
|
|
373
373
|
__extends(ResolveEnd, _super);
|
|
@@ -395,7 +395,7 @@
|
|
|
395
395
|
*
|
|
396
396
|
* Represents an event triggered before lazy loading a route config.
|
|
397
397
|
*
|
|
398
|
-
* @
|
|
398
|
+
* @publicApi
|
|
399
399
|
*/
|
|
400
400
|
var RouteConfigLoadStart = /** @class */ (function () {
|
|
401
401
|
function RouteConfigLoadStart(
|
|
@@ -411,7 +411,7 @@
|
|
|
411
411
|
*
|
|
412
412
|
* Represents an event triggered when a route has been lazy loaded.
|
|
413
413
|
*
|
|
414
|
-
* @
|
|
414
|
+
* @publicApi
|
|
415
415
|
*/
|
|
416
416
|
var RouteConfigLoadEnd = /** @class */ (function () {
|
|
417
417
|
function RouteConfigLoadEnd(
|
|
@@ -428,7 +428,7 @@
|
|
|
428
428
|
* Represents the start of end of the Resolve phase of routing. See note on
|
|
429
429
|
* `ChildActivationEnd` for use of this experimental API.
|
|
430
430
|
*
|
|
431
|
-
* @
|
|
431
|
+
* @publicApi
|
|
432
432
|
*/
|
|
433
433
|
var ChildActivationStart = /** @class */ (function () {
|
|
434
434
|
function ChildActivationStart(
|
|
@@ -448,7 +448,7 @@
|
|
|
448
448
|
* Represents the start of end of the Resolve phase of routing. See note on
|
|
449
449
|
* `ChildActivationStart` for use of this experimental API.
|
|
450
450
|
*
|
|
451
|
-
* @
|
|
451
|
+
* @publicApi
|
|
452
452
|
*/
|
|
453
453
|
var ChildActivationEnd = /** @class */ (function () {
|
|
454
454
|
function ChildActivationEnd(
|
|
@@ -468,7 +468,7 @@
|
|
|
468
468
|
* Represents the start of end of the Resolve phase of routing. See note on
|
|
469
469
|
* `ActivationEnd` for use of this experimental API.
|
|
470
470
|
*
|
|
471
|
-
* @
|
|
471
|
+
* @publicApi
|
|
472
472
|
*/
|
|
473
473
|
var ActivationStart = /** @class */ (function () {
|
|
474
474
|
function ActivationStart(
|
|
@@ -488,7 +488,7 @@
|
|
|
488
488
|
* Represents the start of end of the Resolve phase of routing. See note on
|
|
489
489
|
* `ActivationStart` for use of this experimental API.
|
|
490
490
|
*
|
|
491
|
-
* @
|
|
491
|
+
* @publicApi
|
|
492
492
|
*/
|
|
493
493
|
var ActivationEnd = /** @class */ (function () {
|
|
494
494
|
function ActivationEnd(
|
|
@@ -506,6 +506,8 @@
|
|
|
506
506
|
* @description
|
|
507
507
|
*
|
|
508
508
|
* Represents a scrolling event.
|
|
509
|
+
*
|
|
510
|
+
* @publicApi
|
|
509
511
|
*/
|
|
510
512
|
var Scroll = /** @class */ (function () {
|
|
511
513
|
function Scroll(
|
|
@@ -563,7 +565,7 @@
|
|
|
563
565
|
*
|
|
564
566
|
* Name of the primary outlet.
|
|
565
567
|
*
|
|
566
|
-
*
|
|
568
|
+
* @publicApi
|
|
567
569
|
*/
|
|
568
570
|
var PRIMARY_OUTLET = 'primary';
|
|
569
571
|
var ParamsAsMap = /** @class */ (function () {
|
|
@@ -595,7 +597,7 @@
|
|
|
595
597
|
/**
|
|
596
598
|
* Convert a `Params` instance to a `ParamMap`.
|
|
597
599
|
*
|
|
598
|
-
*
|
|
600
|
+
* @publicApi
|
|
599
601
|
*/
|
|
600
602
|
function convertToParamMap(params) {
|
|
601
603
|
return new ParamsAsMap(params);
|
|
@@ -926,7 +928,7 @@
|
|
|
926
928
|
* }
|
|
927
929
|
* ```
|
|
928
930
|
*
|
|
929
|
-
*
|
|
931
|
+
* @publicApi
|
|
930
932
|
*/
|
|
931
933
|
var UrlTree = /** @class */ (function () {
|
|
932
934
|
/** @internal */
|
|
@@ -962,7 +964,7 @@
|
|
|
962
964
|
*
|
|
963
965
|
* See `UrlTree` for more information.
|
|
964
966
|
*
|
|
965
|
-
*
|
|
967
|
+
* @publicApi
|
|
966
968
|
*/
|
|
967
969
|
var UrlSegmentGroup = /** @class */ (function () {
|
|
968
970
|
function UrlSegmentGroup(
|
|
@@ -1013,7 +1015,7 @@
|
|
|
1013
1015
|
* }
|
|
1014
1016
|
* ```
|
|
1015
1017
|
*
|
|
1016
|
-
*
|
|
1018
|
+
* @publicApi
|
|
1017
1019
|
*/
|
|
1018
1020
|
var UrlSegment = /** @class */ (function () {
|
|
1019
1021
|
function UrlSegment(
|
|
@@ -1070,7 +1072,7 @@
|
|
|
1070
1072
|
*
|
|
1071
1073
|
* See `DefaultUrlSerializer` for an example of a URL serializer.
|
|
1072
1074
|
*
|
|
1073
|
-
*
|
|
1075
|
+
* @publicApi
|
|
1074
1076
|
*/
|
|
1075
1077
|
var UrlSerializer = /** @class */ (function () {
|
|
1076
1078
|
function UrlSerializer() {
|
|
@@ -1093,7 +1095,7 @@
|
|
|
1093
1095
|
* colon syntax to specify the outlet, and the ';parameter=value' syntax (e.g., open=true) to
|
|
1094
1096
|
* specify route specific parameters.
|
|
1095
1097
|
*
|
|
1096
|
-
*
|
|
1098
|
+
* @publicApi
|
|
1097
1099
|
*/
|
|
1098
1100
|
var DefaultUrlSerializer = /** @class */ (function () {
|
|
1099
1101
|
function DefaultUrlSerializer() {
|
|
@@ -1535,7 +1537,7 @@
|
|
|
1535
1537
|
*
|
|
1536
1538
|
* See `ActivatedRoute` for more information.
|
|
1537
1539
|
*
|
|
1538
|
-
*
|
|
1540
|
+
* @publicApi
|
|
1539
1541
|
*/
|
|
1540
1542
|
var RouterState = /** @class */ (function (_super) {
|
|
1541
1543
|
__extends(RouterState, _super);
|
|
@@ -1588,7 +1590,7 @@
|
|
|
1588
1590
|
* }
|
|
1589
1591
|
* ```
|
|
1590
1592
|
*
|
|
1591
|
-
*
|
|
1593
|
+
* @publicApi
|
|
1592
1594
|
*/
|
|
1593
1595
|
var ActivatedRoute = /** @class */ (function () {
|
|
1594
1596
|
/** @internal */
|
|
@@ -1735,7 +1737,7 @@
|
|
|
1735
1737
|
* }
|
|
1736
1738
|
* ```
|
|
1737
1739
|
*
|
|
1738
|
-
*
|
|
1740
|
+
* @publicApi
|
|
1739
1741
|
*/
|
|
1740
1742
|
var ActivatedRouteSnapshot = /** @class */ (function () {
|
|
1741
1743
|
/** @internal */
|
|
@@ -1848,7 +1850,7 @@
|
|
|
1848
1850
|
* }
|
|
1849
1851
|
* ```
|
|
1850
1852
|
*
|
|
1851
|
-
*
|
|
1853
|
+
* @publicApi
|
|
1852
1854
|
*/
|
|
1853
1855
|
var RouterStateSnapshot = /** @class */ (function (_super) {
|
|
1854
1856
|
__extends(RouterStateSnapshot, _super);
|
|
@@ -2958,8 +2960,8 @@
|
|
|
2958
2960
|
getChildRouteGuards(futureNode, currNode, parentContexts, futurePath, checks);
|
|
2959
2961
|
}
|
|
2960
2962
|
if (shouldRun) {
|
|
2961
|
-
var
|
|
2962
|
-
checks.canDeactivateChecks.push(new CanDeactivate(
|
|
2963
|
+
var component = context && context.outlet && context.outlet.component || null;
|
|
2964
|
+
checks.canDeactivateChecks.push(new CanDeactivate(component, curr));
|
|
2963
2965
|
}
|
|
2964
2966
|
}
|
|
2965
2967
|
else {
|
|
@@ -3525,7 +3527,7 @@
|
|
|
3525
3527
|
*
|
|
3526
3528
|
* Provides a way to customize when activated routes get reused.
|
|
3527
3529
|
*
|
|
3528
|
-
* @
|
|
3530
|
+
* @publicApi
|
|
3529
3531
|
*/
|
|
3530
3532
|
var RouteReuseStrategy = /** @class */ (function () {
|
|
3531
3533
|
function RouteReuseStrategy() {
|
|
@@ -3557,7 +3559,7 @@
|
|
|
3557
3559
|
*/
|
|
3558
3560
|
/**
|
|
3559
3561
|
* @docsNotRequired
|
|
3560
|
-
* @
|
|
3562
|
+
* @publicApi
|
|
3561
3563
|
*/
|
|
3562
3564
|
var ROUTES = new core.InjectionToken('ROUTES');
|
|
3563
3565
|
var RouterConfigLoader = /** @class */ (function () {
|
|
@@ -3612,7 +3614,7 @@
|
|
|
3612
3614
|
*
|
|
3613
3615
|
* Provides a way to migrate AngularJS applications to Angular.
|
|
3614
3616
|
*
|
|
3615
|
-
* @
|
|
3617
|
+
* @publicApi
|
|
3616
3618
|
*/
|
|
3617
3619
|
var UrlHandlingStrategy = /** @class */ (function () {
|
|
3618
3620
|
function UrlHandlingStrategy() {
|
|
@@ -3620,7 +3622,7 @@
|
|
|
3620
3622
|
return UrlHandlingStrategy;
|
|
3621
3623
|
}());
|
|
3622
3624
|
/**
|
|
3623
|
-
* @
|
|
3625
|
+
* @publicApi
|
|
3624
3626
|
*/
|
|
3625
3627
|
var DefaultUrlHandlingStrategy = /** @class */ (function () {
|
|
3626
3628
|
function DefaultUrlHandlingStrategy() {
|
|
@@ -3659,7 +3661,7 @@
|
|
|
3659
3661
|
*
|
|
3660
3662
|
* @ngModule RouterModule
|
|
3661
3663
|
*
|
|
3662
|
-
*
|
|
3664
|
+
* @publicApi
|
|
3663
3665
|
*/
|
|
3664
3666
|
var Router = /** @class */ (function () {
|
|
3665
3667
|
/**
|
|
@@ -3932,6 +3934,7 @@
|
|
|
3932
3934
|
_this.resetStateAndUrl(t.currentRouterState, t.currentUrlTree, t.rawUrl);
|
|
3933
3935
|
var navCancel = new NavigationCancel(t.id, _this.serializeUrl(t.extractedUrl), e.message);
|
|
3934
3936
|
eventsSubject.next(navCancel);
|
|
3937
|
+
t.resolve(false);
|
|
3935
3938
|
/* All other errors should reset to the router's internal URL reference to the
|
|
3936
3939
|
* pre-error state. */
|
|
3937
3940
|
}
|
|
@@ -4356,7 +4359,7 @@
|
|
|
4356
4359
|
*
|
|
4357
4360
|
* @ngModule RouterModule
|
|
4358
4361
|
*
|
|
4359
|
-
*
|
|
4362
|
+
* @publicApi
|
|
4360
4363
|
*/
|
|
4361
4364
|
var RouterLink = /** @class */ (function () {
|
|
4362
4365
|
function RouterLink(router, route, tabIndex, renderer, el) {
|
|
@@ -4470,7 +4473,7 @@
|
|
|
4470
4473
|
*
|
|
4471
4474
|
* @ngModule RouterModule
|
|
4472
4475
|
*
|
|
4473
|
-
*
|
|
4476
|
+
* @publicApi
|
|
4474
4477
|
*/
|
|
4475
4478
|
var RouterLinkWithHref = /** @class */ (function () {
|
|
4476
4479
|
function RouterLinkWithHref(router, route, locationStrategy) {
|
|
@@ -4661,7 +4664,7 @@
|
|
|
4661
4664
|
*
|
|
4662
4665
|
* @ngModule RouterModule
|
|
4663
4666
|
*
|
|
4664
|
-
*
|
|
4667
|
+
* @publicApi
|
|
4665
4668
|
*/
|
|
4666
4669
|
var RouterLinkActive = /** @class */ (function () {
|
|
4667
4670
|
function RouterLinkActive(router, element, renderer, cdr) {
|
|
@@ -4762,7 +4765,7 @@
|
|
|
4762
4765
|
/**
|
|
4763
4766
|
* Store contextual information about a `RouterOutlet`
|
|
4764
4767
|
*
|
|
4765
|
-
*
|
|
4768
|
+
* @publicApi
|
|
4766
4769
|
*/
|
|
4767
4770
|
var OutletContext = /** @class */ (function () {
|
|
4768
4771
|
function OutletContext() {
|
|
@@ -4777,7 +4780,7 @@
|
|
|
4777
4780
|
/**
|
|
4778
4781
|
* Store contextual information about the children (= nested) `RouterOutlet`
|
|
4779
4782
|
*
|
|
4780
|
-
*
|
|
4783
|
+
* @publicApi
|
|
4781
4784
|
*/
|
|
4782
4785
|
var ChildrenOutletContexts = /** @class */ (function () {
|
|
4783
4786
|
function ChildrenOutletContexts() {
|
|
@@ -4851,7 +4854,7 @@
|
|
|
4851
4854
|
* ```
|
|
4852
4855
|
* @ngModule RouterModule
|
|
4853
4856
|
*
|
|
4854
|
-
*
|
|
4857
|
+
* @publicApi
|
|
4855
4858
|
*/
|
|
4856
4859
|
var RouterOutlet = /** @class */ (function () {
|
|
4857
4860
|
function RouterOutlet(parentContexts, location, resolver, name, changeDetector) {
|
|
@@ -5009,7 +5012,7 @@
|
|
|
5009
5012
|
*
|
|
5010
5013
|
* Provides a preloading strategy.
|
|
5011
5014
|
*
|
|
5012
|
-
* @
|
|
5015
|
+
* @publicApi
|
|
5013
5016
|
*/
|
|
5014
5017
|
var PreloadingStrategy = /** @class */ (function () {
|
|
5015
5018
|
function PreloadingStrategy() {
|
|
@@ -5025,7 +5028,7 @@
|
|
|
5025
5028
|
* RouteModule.forRoot(ROUTES, {preloadingStrategy: PreloadAllModules})
|
|
5026
5029
|
* ```
|
|
5027
5030
|
*
|
|
5028
|
-
* @
|
|
5031
|
+
* @publicApi
|
|
5029
5032
|
*/
|
|
5030
5033
|
var PreloadAllModules = /** @class */ (function () {
|
|
5031
5034
|
function PreloadAllModules() {
|
|
@@ -5042,7 +5045,7 @@
|
|
|
5042
5045
|
*
|
|
5043
5046
|
* This strategy is enabled by default.
|
|
5044
5047
|
*
|
|
5045
|
-
* @
|
|
5048
|
+
* @publicApi
|
|
5046
5049
|
*/
|
|
5047
5050
|
var NoPreloading = /** @class */ (function () {
|
|
5048
5051
|
function NoPreloading() {
|
|
@@ -5060,7 +5063,7 @@
|
|
|
5060
5063
|
*
|
|
5061
5064
|
* If a route is protected by `canLoad` guards, the preloaded will not load it.
|
|
5062
5065
|
*
|
|
5063
|
-
*
|
|
5066
|
+
* @publicApi
|
|
5064
5067
|
*/
|
|
5065
5068
|
var RouterPreloader = /** @class */ (function () {
|
|
5066
5069
|
function RouterPreloader(router, moduleLoader, compiler, injector, preloadingStrategy) {
|
|
@@ -5240,7 +5243,7 @@
|
|
|
5240
5243
|
*
|
|
5241
5244
|
* Is used in DI to configure the router.
|
|
5242
5245
|
*
|
|
5243
|
-
*
|
|
5246
|
+
* @publicApi
|
|
5244
5247
|
*/
|
|
5245
5248
|
var ROUTER_CONFIGURATION = new core.InjectionToken('ROUTER_CONFIGURATION');
|
|
5246
5249
|
/**
|
|
@@ -5319,7 +5322,7 @@
|
|
|
5319
5322
|
* [Read this developer guide](https://angular.io/docs/ts/latest/guide/router.html) to get an
|
|
5320
5323
|
* overview of how the router should be used.
|
|
5321
5324
|
*
|
|
5322
|
-
*
|
|
5325
|
+
* @publicApi
|
|
5323
5326
|
*/
|
|
5324
5327
|
var RouterModule = /** @class */ (function () {
|
|
5325
5328
|
// Note: We are injecting the Router so it gets created eagerly...
|
|
@@ -5427,7 +5430,7 @@
|
|
|
5427
5430
|
* class MyNgModule {}
|
|
5428
5431
|
* ```
|
|
5429
5432
|
*
|
|
5430
|
-
*
|
|
5433
|
+
* @publicApi
|
|
5431
5434
|
*/
|
|
5432
5435
|
function provideRoutes(routes) {
|
|
5433
5436
|
return [
|
|
@@ -5572,7 +5575,7 @@
|
|
|
5572
5575
|
/**
|
|
5573
5576
|
* A token for the router initializer that will be called after the app is bootstrapped.
|
|
5574
5577
|
*
|
|
5575
|
-
* @
|
|
5578
|
+
* @publicApi
|
|
5576
5579
|
*/
|
|
5577
5580
|
var ROUTER_INITIALIZER = new core.InjectionToken('Router Initializer');
|
|
5578
5581
|
function provideRouterInitializer() {
|
|
@@ -5596,7 +5599,10 @@
|
|
|
5596
5599
|
* Use of this source code is governed by an MIT-style license that can be
|
|
5597
5600
|
* found in the LICENSE file at https://angular.io/license
|
|
5598
5601
|
*/
|
|
5599
|
-
|
|
5602
|
+
/**
|
|
5603
|
+
* @publicApi
|
|
5604
|
+
*/
|
|
5605
|
+
var VERSION = new core.Version('7.0.3');
|
|
5600
5606
|
|
|
5601
5607
|
/**
|
|
5602
5608
|
* @license
|