vsavkin
1a145ac500
fix(router): default exact to false in routerLinkActiveOptions
2016-06-24 12:44:32 -07:00
Julie Ralph
dcf75126bf
fix(common/testing): remove internal MockLocationStrategy from common/testing ( #9562 )
...
BREAKING CHANGE:
MockLocationStrategy was intended to be internal only and is now removed
from the `@angular/common/testing` public api.
Use `SpyLocation` from `@angular/common/testing` for location testing.
2016-06-24 12:41:57 -07:00
Julie Ralph
3d8eb8cbca
fix(platform-browser/testing): clean up public api for platform-browser/testing ( #9519 )
...
Mostly, removing things that were never intended to be exported publicy.
BREAKING CHANGE:
The following are no longer publicly exported APIs. They were intended as internal
utilities and you should use your own util:
```
browserDetection,
dispatchEvent,
el,
normalizeCSS,
stringifyElement,
expect (and custom matchers for Jasmine)
```
2016-06-23 16:42:25 -07:00
vsavkin
8dd3f59c81
chore(router): changes the router setup to align with other modules
2016-06-21 12:17:30 -07:00
vsavkin
d1f93072a8
chore(router): clang-format
2016-06-21 12:17:30 -07:00
vsavkin
92d8bf9619
feat(router): add support for componentless routes
2016-06-21 12:17:30 -07:00
vsavkin
7e12208ca6
feat(router): do not support paths starting with /
2016-06-21 12:17:30 -07:00
vsavkin
2773281338
feat(router): drop index property
...
Use path: '/' instead of 'index: true'
2016-06-21 12:17:30 -07:00
vsavkin
4450e7b246
cleanup(router): enable noImplicitAny and noImplicntReturns
2016-06-21 12:17:30 -07:00
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
f5efccfb44
test(router): test update location when route does not change
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
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
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
d95f0fd83d
fix(router): fix index routes
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
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
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
4f6ec01932
feat: implement a simple version of the router service
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