93a4ca652a
refactor(router): renames PRIMARY_OUTLET into primary
2016-07-22 18:51:35 -07:00
27b87ef535
fix(router): throw when cannot parse a url
2016-07-21 16:14:55 -07:00
44709e0dca
fix(router): handle urls with only secondary top-level segments
2016-07-21 16:14:44 -07:00
db54a84d14
fix(router): routerLinkActive should only set classes after the router has successfully navigated
2016-07-20 17:51:21 -07:00
eb6ff65af7
refactor(router): makes an error message clearer
2016-07-20 14:47:51 -07:00
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
450f61d384
docs(router): fix provider token ( #10177 )
2016-07-20 07:27:09 -07:00
51e661eb74
fix(router): export navigation extras
2016-07-18 17:42:04 -07:00
921a17960c
fix(router): lazy loaded components should use loaded injector
2016-07-18 17:42:04 -07:00
7a4f6621ed
fix(router): handle lastPathIndex of empty-path routes
2016-07-18 17:42:04 -07:00
1803ed2512
fix(router): fix rollup config to properly set up rxjs
2016-07-15 16:27:54 -07:00
f08060b0b0
fix(router): back button does not work in IE11 and Safari
2016-07-15 14:59:59 -07:00
b77a4a40a4
fix(router): expose initalNavigation and dispose so they can be used with webworkers
2016-07-14 17:29:01 -07:00
0668ba50e8
fix(router): freeze params and queryParams to prevent common source of bugs
2016-07-14 13:33:05 -07:00
aa88438b54
feat(Router): add extra validation for when route was passed as Array ( #9942 )
2016-07-14 08:28:31 -07:00
85be729c70
fix(router): lazily-loaded modules should use loaded injectors instead of the root one
2016-07-13 18:25:30 -07:00
a5dc5705a3
feat(router): guards and data resolvers can now return promises
2016-07-13 18:25:30 -07:00
9e3d13f61f
feat(router): add support for canActivateChild
2016-07-13 18:25:30 -07:00
0426325ef7
fix(router): merge SystemJsAppModuleFactoryLoader and SystemJsAllModuleLoader
2016-07-13 11:16:46 -07:00
0b54e3cf0a
fix(router): do not fire events on 'duplicate' location events
2016-07-13 11:16:46 -07:00
5cf58971f1
fix(router): update current state and url before activating components
2016-07-13 11:16:46 -07:00
a46291b67c
docs(router) Added @Injectable decorators to Router API examples ( #10033 )
2016-07-13 07:27:32 -07:00
4ac76ca281
docs(router): fix syntax in code example of comment block ( #10026 )
2016-07-13 07:26:26 -07:00
ded518d47f
feat(router): update routerLink DSL to handle aux routes
2016-07-12 11:44:55 -07:00
61e18434d3
refactor(router): not use reserved words as variable ( #9941 )
2016-07-11 10:53:29 -07:00
245b0910ed
feat(router): add activate and deactivate events to RouterOutlet
2016-07-08 15:01:52 -07:00
a77db44129
feat(router): empty-path routes should inherit matrix params
2016-07-08 14:48:59 -07:00
34b3c534e7
fix(router): disallow root segments with matrix params
2016-07-08 14:47:55 -07:00
749dec7dfb
doc(api): fix invalid doc links ( #9873 )
...
Errors were reported during API doc generation.
2016-07-07 23:02:35 -07:00
96a9e66616
feat(router): add the ANALYZE_FOR_PRECOMPILE provider to make dev ergonomics better
2016-07-07 18:07:10 -07:00
46e105f3ab
fix(router): encode/decode params and path segments
2016-07-07 17:33:42 -07:00
f7a0e9ecb6
fix(router): fix RouterLinKActive to work with RouterLink
2016-07-07 17:33:42 -07:00
72544ba551
feat(router): add RouterTestModule
2016-07-07 14:28:01 -07:00
c43dd5a655
refactor(router): renamed RouterAppModule into RouterModule
2016-07-07 14:28:01 -07:00
37e6da6dfb
refactor(router): clean up naming
2016-07-06 16:19:52 -07:00
8aa2a0c1b2
feat(router): add RouterAppModule
2016-07-06 16:00:40 -07:00
6bfd514caf
fix(router): remove a circular dep
2016-07-06 14:38:05 -07:00
8ebb8e44c8
feat(router): add support for lazily loaded modules
2016-07-06 14:38:05 -07:00
0c65d5cf2b
fix(router): handle router outlets in ngIf
2016-06-30 22:14:42 -07:00
f65ebec3ed
fix(router): update links when query params change
2016-06-30 22:14:42 -07:00
81bf3f66ca
docs(router): rename global redirects into absolute redirects
2016-06-30 22:14:42 -07:00
137fff9632
fix(router): remove private and internal annotations ( #9753 )
2016-06-30 19:39:13 -07:00
dabf214f17
fix(router): remove private and internal annotations ( #9745 )
2016-06-30 14:47:55 -07:00
fb2539e1d5
fix(router): remove the precompile warning
2016-06-30 14:33:04 -07:00
73f017bad9
fix(typescript): make router compile with typescript@next
...
fixes #9731
2016-06-30 11:51:52 -07:00
a3b90411aa
fix(router): fix RouterLinkActive to handle the case when the link has extra paths
2016-06-30 09:26:57 -07:00
5781b96490
fix(router): redirect should not add unnecessary brackets
2016-06-30 09:26:57 -07:00
3784696b9e
fix(router): make the contstructor of the router service public
2016-06-28 18:39:37 -07:00
8c45aebc18
fix(router): make router links work on non-a tags
2016-06-28 18:39:37 -07:00
296a447e3c
docs(router): add api docs
2016-06-28 14:49:29 -07:00