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
Misko Hevery
31322e73b7
fix: correctly show error when karma fails to load
2017-01-06 19:30:09 -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
Victor Berchet
eed83443b8
chore(tslint): update tslint to 4.x ( #13603 )
2016-12-27 14:55:58 -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
crisbeto
171a9bdc85
feat: update to rxjs@5.0.1 and unpin the rxjs peerDeps via ^5.0.1 ( #13572 )
...
Now that rxjs is stable and the rxjs team follows semver, we can update and unpin the dependency safely.
From now on the Angular application/library developers are in charge of controlling the rxjs version as long as it's newer than 5.0.1.
closes #13561
closes #13478
closes #13572
2016-12-19 16:24:53 -08:00
Dzmitry Shylovich
a006c1418a
feat(router): routerLink add tabindex attribute ( #13094 )
...
Fixes #10895
2016-12-09 15:38:50 -08:00
Victor Berchet
c8baf51f4f
style: clang-format the code
2016-12-09 11:19:55 -08:00
Victor Berchet
b5c4bf1c59
refactor(router): misc refactoring ( #13330 )
2016-12-09 10:44:46 -08:00
Victor Berchet
5c6ec20c7e
refactor(router): simplify regexp
...
closes #11373
closes #13329
2016-12-08 18:43:17 -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
Miško Hevery
16efb13dd1
fix: display framework version on bootstrapped component ( #13252 )
2016-12-06 16:21:07 -08:00
Dzmitry Shylovich
2893c2c0a2
fix(router): validate nested routes ( #13224 )
...
Fixes #12827
2016-12-06 10:41:01 -08:00
Maxime Robert
4bd8f58552
FIX typo ( #13267 )
2016-12-06 10:40: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
307c4693dc
refactor(router): code cleanup
2016-12-05 10:54:10 -08:00
Victor Berchet
349ad75de3
fix(router): fix replaceUrl on RouterLink directives
2016-12-05 10:54:10 -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
liufc
12959f444c
refactor(router):remove unused parameter pathIndex ( #13180 )
2016-12-01 13:25:53 -08:00
Victor Savkin
e628b66cca
feat(build): record angular version in the dom ( #13164 )
2016-11-30 13:52:08 -08:00
vsavkin
42cf06fa12
feat(router): add support for custom route reuse strategies
2016-11-29 23:21:41 -08:00
Misko Hevery
2d6a003dba
feat: update RxJS peer dependency to 5.0.0-rc.4
...
Closes #13125
RxJS from beta-12 to rc.4, has removed the `cache`
operator. (See https://github.com/ReactiveX/rxjs/blob/master/CHANGELOG.md#breaking-changes-1 )
If your application relies on it, then we suggest
that you use the one from this gist:
https://gist.github.com/robwormald/19dea0c70a6e01aadced6731aed4f9f7
2016-11-29 16:27:33 -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
Alex Eagle
664a6273e1
feature(tsc-wrapped): add option for closure compiler JSDoc annotations
2016-11-18 09:37:40 -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
927aa69726
fix(router): add a banner file for the router ( #12919 )
2016-11-16 09:17:19 -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
vsavkin
6a212fd561
fix(router): removes a peer dependency from router to upgrade
2016-11-15 18:37:08 -08:00
Dzmitry Shylovich
7c36e7f956
chore(router): remove @angular/upgrade peer dep ( #12896 )
2016-11-15 14:00:11 -08:00
Dzmitry Shylovich
46d150266b
feat(router_link): add skipLocationChange and replaceUrl inputs ( #12850 )
2016-11-14 18:30:13 -08:00
vsavkin
c2fae72bc6
feat(router): register router with ngprobe
2016-11-14 12:57:05 -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
7886561997
fix(router): check if windows.console exists before using it ( #12348 )
2016-11-11 10:46:53 -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