Victor Savkin
34403cda60
fix(router): do not finish bootstrap until all the routes are resolved ( #15121 )
...
Cherry-pick of 5df998d086 onto 2.4.x branch.
DEPRECATION:
Use `RouterModule.forRoot(routes, {initialNavigation: 'enabled'})` instead of
`RouterModule.forRoot(routes, {initialNavigtaion: true})`.
Before doing this, move the initialization logic affecting the router
from the bootstrapped component to the boostrapped module.
Similarly, use `RouterModule.forRoot(routes, {initialNavigation: 'disabled'})`
instead of `RouterModule.forRoot(routes, {initialNavigation: false})`.
Deprecated options: 'legacy_enabled', `true` (same as 'legacy_enabled'),
'legacy_disabled', `false` (same as 'legacy_disabled').
The "Router Initial Navigation" design document covers this change.
Read more here:
https://docs.google.com/document/d/1Hlw1fPaVs-PCj5KPeJRKhrQGAvFOxdvTlwAcnZosu5A/edit?usp=sharing
2017-03-16 15:39:30 -07:00
Victor Berchet
de36f8a3b9
revert: fix(router): do not finish bootstrap until all the routes are resolved ( #14327 )
...
This reverts commit 541de26f7e because it introduced a regression.
Closes #14681 , #14588
2017-02-27 14:37:33 -08:00
Victor Savkin
541de26f7e
fix(router): do not finish bootstrap until all the routes are resolved ( #14327 )
...
Fixes #12162
2017-02-09 11:59:08 -08:00
Dzmitry Shylovich
0965636735
fix(router): fix CanActivateChild guard provided in a lazy loaded module ( #13989 )
...
Closes #12275
PR Close #13989
2017-02-02 16:02:54 -08:00
Dzmitry Shylovich
4d2901d480
fix(router): fix navigation from the root component ngOnInit hook ( #13932 )
...
Closes #13795
PR Close #13932
2017-02-02 16:02:54 -08:00
Dzmitry Shylovich
a047124e1a
fix(router): fix CanActivate redirect to the root on initial load ( #13929 )
...
Closes #13530
PR Close #13929
2017-02-02 16:02:54 -08:00
Dzmitry Shylovich
49c4b0fa92
fix(router): routerLinkActive should not throw when not initialized ( #13273 )
...
Fixes #13270
PR Close #13273
2017-01-18 18:27:14 -06:00
Dzmitry Shylovich
61ba223c1a
fix(router): throw an error when navigate to null/undefined path
...
Closes #10560
Fixes #13384
2017-01-09 18:55:31 -05:00
Victor Berchet
16922655ca
fix(Router): fix checking for object intersection
2017-01-09 18:06:03 -05:00
Dzmitry Shylovich
1c82b58185
fix(router): RouterLink mirrors input target as attribute
...
Closes #13837
2017-01-09 16:50:06 -05:00
Dzmitry Shylovich
9f6a647908
fix(router): update route snapshot before emit new values ( #13558 )
...
Closes #12912
2017-01-05 21:20:45 -08:00
Dzmitry Shylovich
5754ecc3e1
fix(router): fix lazy loaded module with wildcard route ( #13649 )
...
Closes #12955
2017-01-05 21:14:42 -08:00
Dzmitry Shylovich
018865ee6b
fix(router): routerLink support of null/undefined ( #13380 )
...
Closes #6971
2017-01-05 21:11:56 -08:00
Victor Savkin
a38f14b39c
fix(router): should reset location if a navigation by location is successful ( #13545 )
...
Closes #13491
2016-12-21 14:17:25 -08:00
Andy Howell
e4d5a5f003
fix(router): add support for query params with mulitple values
...
closes #11373
2016-12-14 17:20:22 -08:00
Jónatan Núñez
5ee8155e4e
fix(router): Use T type in Resolve interface ( #13242 )
2016-12-14 17:17:45 -08:00
Dzmitry Shylovich
2893c2c0a2
fix(router): validate nested routes ( #13224 )
...
Fixes #12827
2016-12-06 10:41:01 -08:00
vsavkin
c767df0e4e
fix(router): throw a better error message when angular 1 is not bootstraped
2016-12-05 10:57:24 -08:00
vsavkin
25e5b2fdf0
fix(router): make setUpLocationChangeListener idempotent
2016-12-05 10:57:24 -08:00
Victor Berchet
f562cbf86c
fix(router): fix skipLocationChanges on RouterLink directives
...
fixes #13156
2016-12-05 10:54:10 -08:00
Victor Berchet
804943c9b1
refactor(router): cleanup RouterLink
2016-12-05 10:54:10 -08:00
Victor Savkin
d46b8deeea
fix(router): runs guards every time when unsuccessfully navigating to the same url over and over again ( #13209 )
2016-12-02 15:19:00 -08:00
Dzmitry Shylovich
bbb7a39414
fix(router): allow specifying a matcher wihtout specifying a path
...
fixes #12972
2016-12-02 15:03:59 -08:00
Victor Berchet
d7d8fab211
refactor(router): cleanup config
2016-12-02 15:03:59 -08:00
vsavkin
42cf06fa12
feat(router): add support for custom route reuse strategies
2016-11-29 23:21:41 -08:00
Chuck Jazdzewski
3e548de99d
Revert "fix(router): guards restor an incorrect url when used with skipLocationChange"
...
This reverts commit ad20d7d260 .
2016-11-22 13:31:33 -08:00
vsavkin
ad20d7d260
fix(router): guards restor an incorrect url when used with skipLocationChange
...
Closes #12825
2016-11-17 14:10:59 -08:00
vsavkin
602522beb2
fix(router): support redirects to named outlets
...
Closes #12740 , #9921
2016-11-17 14:10:59 -08:00
Victor Savkin
773b31de8f
fix(router): should not create a route state if navigation is canceled ( #12868 )
...
Closes #12776
2016-11-15 19:00:20 -08:00
Joao Dias
77ee27c59e
refactor(): use const and let instead of var
2016-11-12 16:40:17 -08:00
Victor Savkin
52be848f94
fix(router): incorrect injector is used when instantiating components loaded lazily ( #12817 )
2016-11-11 17:12:00 -08:00
Dzmitry Shylovich
785b7b640e
fix(router): Route.isActive also compares query params ( #12321 )
2016-11-11 13:23:47 -08:00
vsavkin
e5a753e111
fix(router): router should not swallow "unhandled" errors
...
closes #12802
2016-11-11 13:22:19 -08:00
Michael Seemann
2a4bf9a0df
fix(router): avoid router initialization for non root components
...
closes #12338
closes #12814
2016-11-11 11:15:17 -08:00
Dzmitry Shylovich
77dc1ab675
fix(router): throw an error when encounter undefined route ( #12389 )
2016-11-10 14:55:10 -08:00
Dzmitry Shylovich
3052fb234f
fix(router): ignore null or undefined query parameters ( #12333 )
2016-11-10 14:41:19 -08:00
vsavkin
73407351e7
feat(router): add support for custom url matchers
...
Closes #12442
Closes #12772
2016-11-09 16:24:58 -08:00
vsavkin
2c110931f8
fix(router): do not require the creation of empty-path routes when no url left
...
Closes #12133
2016-11-09 16:24:49 -08:00
Victor Savkin
9ddf9b3d3d
fix(router): advance a route only after its children have been deactivated ( #12676 )
...
Closes #11715
2016-11-03 16:26:10 -07:00
André Werlang
2e78b76fcf
fix(router): resolve guard observables on the first emit ( #10412 )
2016-11-02 21:56:04 -07:00
vsavkin
d509ee078b
fix(router): reset URL to the stable state when a navigation gets canceled
...
Closes #10321
2016-11-02 12:25:23 -07:00
vsavkin
830a780cb3
fix(router): CanDeactivate receives a wrong component
...
Closes #12592
2016-11-02 12:25:23 -07:00
Austin Miller
1de04b23b1
fix(router): call data observers when the path changes
2016-11-01 11:28:43 -07:00
vsavkin
fe47e6b783
fix(router): rerun resolvers when url changes
...
Closes #12603
2016-10-28 15:17:00 -07:00
vsavkin
091c390032
fix(router): run navigations serialy
...
Closes #11754
2016-10-28 14:56:08 -07:00
Jeremy Elbourn
c9f58cf78c
feat(router): export routerLinkActive w/ isActive property
2016-10-26 14:08:22 -07:00
vsavkin
6ccbfd41dd
fix(router): preserve resolve data
...
Closes #12306
2016-10-26 13:53:00 -07:00
vsavkin
7d2554baa1
tests(router): add a test showing how to handle resovle errors
2016-10-26 13:52:59 -07:00
vsavkin
52a853e257
fix(router): change router not to deactivate aux routes when navigating from a componentless routes
2016-10-26 13:52:59 -07:00
vsavkin
8f2fa0f766
fix(router): disallow component routes with named outlets
...
Closes #11208 , #11082
2016-10-26 13:52:59 -07:00