179 Commits

Author SHA1 Message Date
vsavkin
9ff6b0828f feat(router): make activation sync 2016-06-21 12:17:30 -07:00
vsavkin
6f052d1daf feat(router): add a function to resolve components 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
2de1030413 feat(router): add RouterStateCandidate 2016-06-21 12:17:30 -07:00
vsavkin
1f6ade894e cleanup(router): fix a typo 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
91d64a2855 feat(router): export provideRouter via index 2016-06-21 12:17:30 -07:00
vsavkin
40a06af79b feat(router): add provideRouter to configure the router when bootstrapping an app 2016-06-21 12:17:30 -07:00
vsavkin
8aef86f4a0 feat(router): export all public api tokens via index 2016-06-21 12:17:30 -07:00
vsavkin
5bdc6ecec8 chore: adds the build dir to use with 'npm install' 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
10d38cbb72 chore(router): change karma reporter 2016-06-21 12:17:30 -07:00
vsavkin
a5371bfb8a cleanup: cleanup tsconfig files 2016-06-21 12:17:30 -07:00
vsavkin
4b2740f270 refactor: move index.ts into src 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
5bf1c93ead docs: adds missing api docs 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
0f79e504c9 test: set up karma to support fakeAsync 2016-06-21 12:17:30 -07:00
vsavkin
1a4e911b8b cleanup: fix type errors when compiling with strictNullChecks enabled 2016-06-21 12:17:30 -07:00
vsavkin
1f98519380 feat: implement RouterOutletMap 2016-06-21 12:17:30 -07:00
vsavkin
aad7010952 feat: add RouterOutlet 2016-06-21 12:17:30 -07:00
vsavkin
1be9ea681b fix: fix source maps 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
aee764d14d chore: update TS to enable non-nullable types 2016-06-21 12:17:30 -07:00
vsavkin
47585498af chore: updates typings to head 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
Rob Wormald
0b2bb1b6f5 chore(typings): use typings instead of tsd 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
37b617dccf chore(tsickle): add @Annotation annotations
This lets users continue using runtime-sideeffect Decorators if they choose,
only down-leveling the marked ones to Annotations.

Also remove the "skipTemplateCodegen" option, which is no longer needed
since Angular compiles with tsc-wrapped rather than ngc. The former doesn't
include any codegen.
2016-06-16 12:29:46 -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
Igor Minar
45de65bd45 fix(router): don't mark the RouterOutletMap as internal
it's currently being reexported as public api which breaks anyone tryin to import
the router because the RouterOutletMap definition is missing
2016-06-08 11:18:35 -07:00
Victor Berchet
ac1156739d feat(i18n): extract messages 2016-06-07 15:17:02 -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
Hannah Howard
1c929031a2 feat(router): export RouterLink and RouterOutlet (#8912)
Makes it possible to individually import RouterLink and RouterOutlet from the router module
2016-06-01 09:48:55 -07:00
Alex Eagle
c6064a30a1 chore(package.json): make the packages installable 2016-05-27 17:21:34 -07:00
Alex Eagle
2019050db2 chore(lint): enable duplicateModuleImport tslint check 2016-05-27 09:17:08 -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
Miško Hevery
39ecd01b86 chore: audit @angular/core API classification (#8808) 2016-05-25 15:00:05 -07:00