vsavkin
06e4ca4bb3
fix(router): advance query params and fragment after advanced routes
2016-07-22 18:51:35 -07:00
vsavkin
43437c175a
fix(router): handle url fragments when no url segments present
2016-07-22 18:51:35 -07:00
vsavkin
8d90a5a4cf
fix(router): router link active should take all descendants into account
2016-07-22 18:51:35 -07:00
Victor Berchet
00aa7a76b6
chore(tests): enable lint, make it green. ( #10224 )
2016-07-21 17:12:00 -07:00
vsavkin
db54a84d14
fix(router): routerLinkActive should only set classes after the router has successfully navigated
2016-07-20 17:51:21 -07:00
vsavkin
23ee29b6a2
fix(router): navigation should not preserve query params and fragment by default
...
BREAKING CHANGE
Previously both imperative (router.navigate) and declarative (routerLink) navigations
would preserve the current query params and fragment. This behavior turned out to
be confusing. This commit changes it.
Now, neither is preserved by default. To preserve them, you need to do the following:
router.naviage("newUrl", {preserveQueryParams: true, preserveFragment: true})
<a routerLink="newUrl" preserveQueryParams preserveFragment></a>
2016-07-20 14:30:04 -07:00
vsavkin
2799e7a3ca
refactor(router): rename RouterTestModule into RouterTestingModule
2016-07-20 11:39:31 -07:00
vsavkin
921a17960c
fix(router): lazy loaded components should use loaded injector
2016-07-18 17:42:04 -07:00
vsavkin
85be729c70
fix(router): lazily-loaded modules should use loaded injectors instead of the root one
2016-07-13 18:25:30 -07:00
vsavkin
a5dc5705a3
feat(router): guards and data resolvers can now return promises
2016-07-13 18:25:30 -07:00
vsavkin
9e3d13f61f
feat(router): add support for canActivateChild
2016-07-13 18:25:30 -07:00
vsavkin
0426325ef7
fix(router): merge SystemJsAppModuleFactoryLoader and SystemJsAllModuleLoader
2016-07-13 11:16:46 -07:00
vsavkin
0b54e3cf0a
fix(router): do not fire events on 'duplicate' location events
2016-07-13 11:16:46 -07:00
vsavkin
5cf58971f1
fix(router): update current state and url before activating components
2016-07-13 11:16:46 -07:00
Victor Berchet
3050ae155c
feat(ICU): enable ICU extraction even when when in is not used
...
BREAKING CHANGES:
"{" is used a a delimiter for ICU messages then it could not be used in text nodes.
"{" should be escaped as "{{ '{' }}"
Before:
<span>some { valid } text</span>
After:
<span>some { invalid } text<span> <!-- throw parse error -->
<span>some {{ '{' }} valid } text</span>
2016-07-12 16:57:39 -07:00
Julie Ralph
9af2d8b810
fix(testing): remove deprecated testing APIs ( #9923 )
...
See https://github.com/angular/angular/blob/master/CHANGELOG.md for
prior deprecation and how to update.
2016-07-11 16:04:32 -07:00
vsavkin
245b0910ed
feat(router): add activate and deactivate events to RouterOutlet
2016-07-08 15:01:52 -07:00
vsavkin
96a9e66616
feat(router): add the ANALYZE_FOR_PRECOMPILE provider to make dev ergonomics better
2016-07-07 18:07:10 -07:00
vsavkin
f7a0e9ecb6
fix(router): fix RouterLinKActive to work with RouterLink
2016-07-07 17:33:42 -07:00
vsavkin
72544ba551
feat(router): add RouterTestModule
2016-07-07 14:28:01 -07:00
vsavkin
37e6da6dfb
refactor(router): clean up naming
2016-07-06 16:19:52 -07:00
vsavkin
8ebb8e44c8
feat(router): add support for lazily loaded modules
2016-07-06 14:38:05 -07:00
vsavkin
0c65d5cf2b
fix(router): handle router outlets in ngIf
2016-06-30 22:14:42 -07:00
vsavkin
f65ebec3ed
fix(router): update links when query params change
2016-06-30 22:14:42 -07:00
vsavkin
8c45aebc18
fix(router): make router links work on non-a tags
2016-06-28 18:39:37 -07:00
vsavkin
fcfddbf79c
feat(router): add pathMatch property to replace terminal
2016-06-27 20:21:30 -07:00
vsavkin
dc64e90ab9
feat(router): use componentFactoryResolver
2016-06-27 20:21:30 -07:00
vsavkin
f2f1ec0117
feat(router): implement data and resolve
2016-06-27 14:25:56 -07:00
vsavkin
d20488752b
fix(router): top-levels do not work in ngIf
2016-06-27 13:34:54 -07:00
vsavkin
855f3afb28
fix(router): canceled navigations should return a promise that is resolved with false
2016-06-27 13:34:54 -07:00
vsavkin
327d04c9c6
chore(router): clang-format
2016-06-24 12:44:32 -07:00
vsavkin
54edce2bab
fix(router): wildcard don't get notified on url changes
2016-06-24 12:44:32 -07:00
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