Victor Berchet
41da5998cd
feat(router): add an option to rerun guards and resolvers when query changes ( #14624 )
...
Closes #14514
Closes #14567
2017-02-23 22:12:30 -08:00
Victor Berchet
c2d5f203a5
Revert "feat(router): add an option to rerun guards and resolvers when query changes"
...
This reverts commit c2e0f71a78 .
2017-02-20 19:48:43 -08:00
Victor Berchet
670f2eca00
Revert "fix(router): do not finish bootstrap until all the routes are resolved ( #14608 )"
...
This reverts commit 2a191cae2d .
2017-02-20 19:48:23 -08:00
Victor Berchet
2a191cae2d
fix(router): do not finish bootstrap until all the routes are resolved ( #14608 )
...
Fixes #12162
closes #14155
2017-02-20 18:37:38 -08:00
vsavkin
c2e0f71a78
feat(router): add an option to rerun guards and resolvers when query changes
...
Closes #14514
Closes #14567
2017-02-20 18:01:51 -08:00
Victor Berchet
78e8814103
feat(router): add RouteConfigLoadStart and RouteConfigLoadEnd events
2017-02-20 16:19:05 -08:00
Dzmitry Shylovich
7df6f46c1c
feat(router): introduce RouteConfigLoaded event
...
Closes #14036
2017-02-20 16:19:05 -08:00
Alex Eagle
ef32e6b0d0
fix: build and test fixes for TS 2.1 ( #13294 )
2017-02-08 11:32:40 -06:00
evan Liu
c87c3bec93
feat(router): deprecate preserveQueryParams,add queryParamsHandling ( #14095 )
...
PR Close #14095
2017-01-31 15:43:25 -06:00
Dzmitry Shylovich
579567ca79
fix(router): fix CanActivateChild guard provided in a lazy loaded module ( #13989 )
...
Closes #12275
PR Close #13989
2017-01-29 12:17:03 -06:00
Dzmitry Shylovich
47d41d492b
fix(router): fix navigation from the root component ngOnInit hook ( #13932 )
...
Closes #13795
PR Close #13932
2017-01-29 12:16:12 -06:00
Dzmitry Shylovich
e075b1ba83
fix(router): fix CanActivate redirect to the root on initial load ( #13929 )
...
Closes #13530
PR Close #13929
2017-01-29 12:15:46 -06:00
Dzmitry Shylovich
e8ea741039
fix(router): routerLinkActive should not throw when not initialized ( #13273 )
...
Fixes #13270
PR Close #13273
2017-01-17 18:38:45 -06:00
Julien Elbaz
d4d3782d45
feat(Router): call resolver when upstream params change ( #12942 )
...
With this change the resolver is called when the parameter for the activated and any parent routes change.
ie, switching from `/teams/10/players/5` to `/teams/12/players/5` will now trigger any `PlayerResolver`.
2017-01-09 18:56:58 -05:00
Dzmitry Shylovich
46cb04d575
fix(router): throw an error when navigate to null/undefined path
...
Closes #10560
Fixes #13384
2017-01-09 18:56:47 -05:00
Victor Berchet
6d29faefea
fix(Router): fix checking for object intersection
2017-01-09 16:30:14 -05:00
Dzmitry Shylovich
d9a22dae4f
fix(router): RouterLink mirrors input target as attribute
...
Closes #13837
2017-01-09 15:00:40 -05:00
Dzmitry Shylovich
07e0fce8fc
fix(router): update route snapshot before emit new values ( #13558 )
...
Closes #12912
2016-12-27 15:57:22 -08:00
Dzmitry Shylovich
0eca960494
fix(router): fix lazy loaded module with wildcard route ( #13649 )
...
Closes #12955
2016-12-27 15:22:57 -08:00
Dzmitry Shylovich
69fa3bbc03
feat(router): add an extra argument to CanDeactivate interface ( #13560 )
...
Adds a `nextState` argument to access the future url from `CanDeactivate`.
BEFORE:
canDeactivate(component: T, route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean>|Promise<boolean>|boolean;
AFTER:
canDeactivate(component: T, currentRoute: ActivatedRouteSnapshot, currentState: RouterStateSnapshot, nextState?: RouterStateSnapshot): Observable<boolean>|Promise<boolean>|boolean;
Closes #9853
2016-12-27 14:08:06 -08:00
Dzmitry Shylovich
174334dec3
fix(router): routerLink support of null/undefined ( #13380 )
...
Closes #6971
2016-12-27 13:45:16 -08:00
Victor Savkin
eb2ceff4ba
fix(router): should reset location if a navigation by location is successful ( #13545 )
...
Closes #13491
2016-12-21 12:47:58 -08:00
Dzmitry Shylovich
a006c1418a
feat(router): routerLink add tabindex attribute ( #13094 )
...
Fixes #10895
2016-12-09 15:38:50 -08:00
Andy Howell
440ef02f29
fix(router): add support for query params with mulitple values
...
closes #11373
2016-12-08 18:42:58 -08:00
Jónatan Núñez
9591a08dfb
fix(router): Use T type in Resolve interface ( #13242 )
2016-12-08 11:24:38 -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