212 Commits

Author SHA1 Message Date
vsavkin
cdbf67ee05 test(router): add a test checking that guards work for child routes 2016-06-21 12:17:30 -07:00
Dimitrios Loukadakis
9a67f38728 fix(router): port fixes done on angular current router to the new one
The bugs were fixed on current angular router in the following commits:
angular/angular@b2a7fd05cb
angular/angular@fa2ce8100b
angular/angular@595bcdd1ac

Closes #12
2016-06-21 12:17:30 -07:00
vsavkin
25560ed048 feat(router): implement RouterLinkActive 2016-06-21 12:17:30 -07:00
vsavkin
b3e801ed9e feat(router): make it work with TypeScript 1.8 2016-06-21 12:17:30 -07:00
vsavkin
f5efccfb44 test(router): test update location when route does not change 2016-06-21 12:17:30 -07:00
vsavkin
b6ec22de6b test(router): test empty url with global redirect 2016-06-21 12:17:30 -07:00
vsavkin
127401598b feat(router): implement terminal 2016-06-21 12:17:30 -07:00
vsavkin
777eb2f159 feat(router): emit an event when routes are recognized 2016-06-21 12:17:30 -07:00
vsavkin
66caabca0c feat(router): implement redirectTo 2016-06-21 12:17:30 -07:00
vsavkin
56f8c95ee9 tests(router): add tests verifying that updating secondary segments using router link works 2016-06-21 12:17:30 -07:00
vsavkin
ed50e17e5b refactor(router): rename queryParameters into queryParams 2016-06-21 12:17:30 -07:00
vsavkin
33b518ad21 feat(router): update RouterLink to support query params and fragment 2016-06-21 12:17:30 -07:00
vsavkin
b0e7c14545 fix(router): add an app initializer to trigger initial navigation
Closes #10
2016-06-21 12:17:30 -07:00
vsavkin
5742d4720a fix(router): fix router to handle guards that return observable
Closes #19
2016-06-21 12:17:30 -07:00
vsavkin
9b356d9b86 fix(router): traverse route config in depth-first order
Closes #17
2016-06-21 12:17:30 -07:00
Brandon Roberts
793ac3f6b4 Configure router with provided routes
Closes #9
2016-06-21 12:17:30 -07:00
vsavkin
88920bfee1 feat(router): add support for basic events 2016-06-21 12:17:30 -07:00
vsavkin
2717bcc3af feat(router): implement cancelation 2016-06-21 12:17:30 -07:00
vsavkin
f34af4f249 feat(router): add support for using classes as guard 2016-06-21 12:17:30 -07:00
vsavkin
ab958598d7 feat(router): implement CandDeactivate 2016-06-21 12:17:30 -07:00
vsavkin
1914847e72 cleanup(router): make strictNullChecks happy 2016-06-21 12:17:30 -07:00
vsavkin
d95f0fd83d fix(router): fix index routes 2016-06-21 12:17:30 -07:00
vsavkin
243612e36d refactor(router): rename candidate into snapshot 2016-06-21 12:17:30 -07:00
vsavkin
c5cca8e098 feat(router): add support for CanActivate guard 2016-06-21 12:17:30 -07:00
vsavkin
63c194b71f feat(router): change recognize to return a router state candidate 2016-06-21 12:17:30 -07:00
vsavkin
46911117f1 feat(router): implement a function create router state out of a candidate 2016-06-21 12:17:30 -07:00
vsavkin
8407cfeac7 fix(router): fix router to take root component type instead of instance 2016-06-21 12:17:30 -07:00
vsavkin
c179b5033b feat(router): implement relative navigation 2016-06-21 12:17:30 -07:00
vsavkin
86f47273bc feat(router): changes router config not to use names 2016-06-21 12:17:30 -07:00
vsavkin
2e1bd46bb1 feat(router): add createUrlTree 2016-06-21 12:17:30 -07:00
vsavkin
a9e773b47b feat(router): serialize outlet names into the url 2016-06-21 12:17:30 -07:00
vsavkin
a5371bfb8a cleanup: cleanup tsconfig files 2016-06-21 12:17:30 -07:00
vsavkin
5b371736b2 feat: add RouterLink 2016-06-21 12:17:30 -07:00
vsavkin
c9b4bcf689 refactor: move all utility functions into the utils dir 2016-06-21 12:17:30 -07:00
vsavkin
013f9a2bbc feat: add tree.siblings 2016-06-21 12:17:30 -07:00
vsavkin
4f6ec01932 feat: implement a simple version of the router service 2016-06-21 12:17:30 -07:00
vsavkin
f259a2204b feat: implement recognizer 2016-06-21 12:17:30 -07:00
vsavkin
4b1db0e61c feat: implement default url serializer 2016-06-21 12:17:30 -07:00
vsavkin
37c5320e33 feat: implement Tree 2016-06-21 12:17:30 -07:00
vsavkin
01111a1122 cleanup: removes a fake test 2016-06-21 12:17:30 -07:00
vsavkin
f57df3cf8a chore: set up test and build infrastructure 2016-06-21 12:17:30 -07:00
vsavkin
af2f5c3d7d cleanup(router): removes router 2016-06-20 08:47:54 -07:00
Alex Eagle
f39c9c9e75 style(lint): re-format modules/@angular 2016-06-09 17:00:15 -07:00
Victor Berchet
7ce0fc7d47 refactor: add types (#9116) 2016-06-09 11:04:15 -07:00
ScottSWu
86fbd50c3d refactor(TypeScript): Add noImplicitAny
We automatically insert explicit 'any's where needed. These need to be
addressed as in #9100.

Fixes #4924
2016-06-08 16:20:50 -07:00
Victor Berchet
a6ad61d83e refactor: change provide(...) for {provide: ...}
- provide() is deprecated,
- {} syntax is required by the offline compiler
2016-06-03 15:03:49 -07:00
Dimitrios Loukadakis
b2a7fd05cb fix(router): replace state when path is equal to current path (#8766)
Same as 2bf21e174747052c7628eb9c50654fc1738a17a2 but for new router.

This also fixes an issue where when application loads it clears forward history
because Router constructor calls navigateByUrl which was causing a push state to happen.
2016-05-26 12:02:24 -07:00
Dimitrios Loukadakis
fa2ce8100b fix(router): openning links in new tab
Clicks on router-link should not prevent browser default action when
any mouse button other than left mouse button or ctrl/meta key is pressed.

router-link href should use location strategy external url.

Closes #5908
Closes #6806
Closes #7749
Closes #8806

Closes #8821
2016-05-26 10:26:57 -07:00
Dimitrios Loukadakis
595bcdd1ac fix(router): browser back and forward buttons not working correctly.
Closes #8524

Closes #8532
2016-05-19 22:42:08 -07:00
vsavkin
b30ddfbfc5 chore(router): clang-format 2016-05-04 15:01:27 -07:00