Victor Berchet
f562cbf86c
fix(router): fix skipLocationChanges on RouterLink directives
...
fixes #13156
2016-12-05 10:54:10 -08:00
Victor Berchet
804943c9b1
refactor(router): cleanup RouterLink
2016-12-05 10:54:10 -08:00
Victor Savkin
d46b8deeea
fix(router): runs guards every time when unsuccessfully navigating to the same url over and over again ( #13209 )
2016-12-02 15:19:00 -08:00
Dzmitry Shylovich
bbb7a39414
fix(router): allow specifying a matcher wihtout specifying a path
...
fixes #12972
2016-12-02 15:03:59 -08:00
Victor Berchet
d7d8fab211
refactor(router): cleanup config
2016-12-02 15:03:59 -08:00
liufc
12959f444c
refactor(router):remove unused parameter pathIndex ( #13180 )
2016-12-01 13:25:53 -08:00
vsavkin
42cf06fa12
feat(router): add support for custom route reuse strategies
2016-11-29 23:21:41 -08:00
Chuck Jazdzewski
3e548de99d
Revert "fix(router): guards restor an incorrect url when used with skipLocationChange"
...
This reverts commit ad20d7d260
.
2016-11-22 13:31:33 -08:00
vsavkin
ad20d7d260
fix(router): guards restor an incorrect url when used with skipLocationChange
...
Closes #12825
2016-11-17 14:10:59 -08:00
vsavkin
602522beb2
fix(router): support redirects to named outlets
...
Closes #12740 , #9921
2016-11-17 14:10:59 -08:00
Victor Savkin
773b31de8f
fix(router): should not create a route state if navigation is canceled ( #12868 )
...
Closes #12776
2016-11-15 19:00:20 -08:00
Dzmitry Shylovich
46d150266b
feat(router_link): add skipLocationChange and replaceUrl inputs ( #12850 )
2016-11-14 18:30:13 -08:00
vsavkin
c2fae72bc6
feat(router): register router with ngprobe
2016-11-14 12:57:05 -08:00
Joao Dias
77ee27c59e
refactor(): use const and let instead of var
2016-11-12 16:40:17 -08:00
Victor Savkin
52be848f94
fix(router): incorrect injector is used when instantiating components loaded lazily ( #12817 )
2016-11-11 17:12:00 -08:00
Dzmitry Shylovich
785b7b640e
fix(router): Route.isActive also compares query params ( #12321 )
2016-11-11 13:23:47 -08:00
vsavkin
e5a753e111
fix(router): router should not swallow "unhandled" errors
...
closes #12802
2016-11-11 13:22:19 -08:00
Michael Seemann
2a4bf9a0df
fix(router): avoid router initialization for non root components
...
closes #12338
closes #12814
2016-11-11 11:15:17 -08:00
Dzmitry Shylovich
7886561997
fix(router): check if windows.console exists before using it ( #12348 )
2016-11-11 10:46:53 -08:00
Dzmitry Shylovich
77dc1ab675
fix(router): throw an error when encounter undefined route ( #12389 )
2016-11-10 14:55:10 -08:00
Dzmitry Shylovich
3052fb234f
fix(router): ignore null or undefined query parameters ( #12333 )
2016-11-10 14:41:19 -08:00
vsavkin
73407351e7
feat(router): add support for custom url matchers
...
Closes #12442
Closes #12772
2016-11-09 16:24:58 -08:00
vsavkin
2c110931f8
fix(router): do not require the creation of empty-path routes when no url left
...
Closes #12133
2016-11-09 16:24:49 -08:00
Victor Savkin
6e35d13fbc
feat(router): add a provider making angular1/angular2 integration easier ( #12769 )
2016-11-09 13:33:33 -08:00
liufc
89fd54e8e3
docs(url_tree):fix typo(UrlSegment path property's comment part -> path) ( #12728 )
2016-11-07 10:27:47 -08:00
Victor Savkin
9ddf9b3d3d
fix(router): advance a route only after its children have been deactivated ( #12676 )
...
Closes #11715
2016-11-03 16:26:10 -07:00
André Werlang
2e78b76fcf
fix(router): resolve guard observables on the first emit ( #10412 )
2016-11-02 21:56:04 -07:00
vsavkin
d509ee078b
fix(router): reset URL to the stable state when a navigation gets canceled
...
Closes #10321
2016-11-02 12:25:23 -07:00
vsavkin
8e221b826f
fix(router): routerLink should not prevent default on non-link elements
2016-11-02 12:25:23 -07:00
vsavkin
830a780cb3
fix(router): CanDeactivate receives a wrong component
...
Closes #12592
2016-11-02 12:25:23 -07:00
Austin Miller
1de04b23b1
fix(router): call data observers when the path changes
2016-11-01 11:28:43 -07:00
vsavkin
fe47e6b783
fix(router): rerun resolvers when url changes
...
Closes #12603
2016-10-28 15:17:00 -07:00
vsavkin
091c390032
fix(router): run navigations serialy
...
Closes #11754
2016-10-28 14:56:08 -07:00
Jeremy Elbourn
c9f58cf78c
feat(router): export routerLinkActive w/ isActive property
2016-10-26 14:08:22 -07:00
vsavkin
6ccbfd41dd
fix(router): preserve resolve data
...
Closes #12306
2016-10-26 13:53:00 -07:00
vsavkin
52a853e257
fix(router): change router not to deactivate aux routes when navigating from a componentless routes
2016-10-26 13:52:59 -07:00
vsavkin
8f2fa0f766
fix(router): disallow component routes with named outlets
...
Closes #11208 , #11082
2016-10-26 13:52:59 -07:00
vsavkin
b74185369f
fix(router): canDeactivate guards are not triggered for componentless routes
...
Closes #12375
2016-10-26 13:52:58 -07:00
Daniel Leib
da5fc696bb
fix(router): do not update primary route if only secondary outlet is given ( #11797 )
2016-10-20 10:59:08 -07:00
vsavkin
5ae6915600
fix(router): fix lazy loading triggered by redirects from wildcard routes
...
Closes #12183
2016-10-20 10:56:12 -07:00
Victor Savkin
8b9ab44eee
feat(router): add support for ng1/ng2 migration ( #12160 )
2016-10-20 10:44:44 -07:00
Ferdinand Malcher
d55f747858
docs(router): attribute notation for string paths ( #12205 )
...
Either bind an expression or use the attribute notation.
The mixed way `[routerLink]="/path"` won't work.
Prefer the attribute notation for string-only paths
2016-10-17 22:53:55 -07:00
Victor Berchet
3df00828d7
docs(router): fix CanActivateChild API docs ( #12128 )
...
fixes #12127
2016-10-11 15:47:57 -07:00
vsavkin
e06303a987
fix(router): improve error message ( #12102 )
2016-10-06 15:19:22 -07:00
vsavkin
40b92ddf21
fix(router): wildcards routes should support lazy loading
...
Closes #12024
2016-10-06 15:19:09 -07:00
vsavkin
1681e4f57f
fix(router): parent resolve should complete before merging resolved data
...
Closes #12032
2016-10-06 15:19:09 -07:00
Victor Berchet
50c37d45dc
refactor: simplify arrow functions ( #12057 )
2016-10-04 15:57:37 -07:00
Connor Wyatt
c143fee849
refactor(routerLinkActive): optimised routerLinkActive active check code ( #11968 )
...
Modify routerLinkActive to optimise performance by removing unnecessary iteration. By replacing Array.reduce with Array.some, the loop will break when it finds an active link. Useful if used on the parent of a large group of routerLinks. Furthermore, if a RouterLink is active it will not check the RouterLinkWithHrefs.
2016-09-30 09:42:54 -07:00
Alex Eagle
41c8c30973
chore(lint): remove unused imports ( #11923 )
...
This was done automatically by tslint, which can now fix issues it finds.
The fixer is still pending in PR https://github.com/palantir/tslint/pull/1568
Also I have a local bugfix for https://github.com/palantir/tslint/issues/1569
which causes too many imports to be deleted.
2016-09-27 17:12:25 -07:00
Trotyl Yu
745e10e6d2
docs(router_config): add missing quote ( #11925 )
2016-09-27 10:10:12 -07:00
Victor Savkin
31dce72b7b
fix(router): update the router not to reset router state when updating root component ( #11799 )
2016-09-21 11:37:43 -07:00
vsavkin
5a849829c4
feat(router): add router preloader to optimistically preload routes
2016-09-20 14:53:52 -07:00
vsavkin
a343a8e1c2
docs(router): fix typos
2016-09-12 09:47:44 -07:00
vsavkin
a41c1bbdf4
docs(router): update docs of the router lifecycle interfaces
2016-09-10 16:55:14 -07:00
vsavkin
f2c6157e74
docs(router): update docs of RouteModule and RouterTestingModule
2016-09-10 16:55:13 -07:00
vsavkin
32564ece27
docs(router): update RouterState docs
2016-09-10 16:55:13 -07:00
vsavkin
3eee62fa71
docs(router): update router configuration docs
2016-09-10 16:55:13 -07:00
vsavkin
617475005f
docs(router): update docs of the Router service
2016-09-10 16:55:13 -07:00
vsavkin
0822066175
docs(router): update docs for router directives
2016-09-10 16:55:13 -07:00
Trotyl Yu
cc958c74ad
docs(router): Fix typo of segment name and odd quote ( #11409 )
2016-09-07 14:10:19 -07:00
Brandon
f5101782d9
docs(router): Fixed examples for router.navigate ( #11263 )
2016-09-02 13:42:51 -07:00
Tobias Bosch
6ea5b05e7c
refactor(benchmarks): make setup nicer
...
- simplify and correct systemjs config
- remove deep imports into Ng2 packages to work with bundles
- have separate Ng2 and Polymer bootstrap files
2016-08-31 11:24:22 -07:00
Victor Berchet
0f68351979
fix(Router): fix type ( #11181 )
2016-08-30 21:06:38 -07:00
vsavkin
c74a438f0c
docs(router): fix up the exampesd
2016-08-30 20:37:35 -07:00
vsavkin
c350ba29f6
fix(router): do not use rx/add/operator
2016-08-30 20:37:35 -07:00
Miško Hevery
979657989b
fix(packages): use ES modules for primary build ( #11120 )
2016-08-30 18:07:40 -07:00
Victor Savkin
e2241a2f92
fix(router): support guards navigating synchronously ( #11150 )
2016-08-29 17:51:38 -07:00
James Blacklock
4a44832114
fix(UrlParser) stop setting default value 'true' (matrix params) ( #10946 )
...
This was already fixed recently for query params in #10399 .
2016-08-26 15:41:32 -07:00
Misko Hevery
7c07bfff97
fix(errors): [2/2] Rename Exception to Error; remove from public API
...
BREAKING CHANGE:
Exceptions are no longer part of the public API. We don't expect that anyone should be referring to the Exception types.
ExceptionHandler.call(exception: any, stackTrace?: any, reason?: string): void;
change to:
ErrorHandler.handleError(error: any): void;
2016-08-26 10:37:17 -07:00
Victor Berchet
fc1e45db92
fix(Router): merge artifacts
...
closes #11063
closes #11102
2016-08-26 10:32:35 -07:00
vsavkin
a2deafc50f
fix(router): add an option to disable initial navigation
2016-08-26 10:32:35 -07:00
vsavkin
2fc5c57b31
feat(router): add support for custom error handlers
2016-08-26 10:32:35 -07:00
vsavkin
93f323cfa2
refactor(router): make RouterLink and RouterLinkWithHref create url in a similar way
2016-08-26 10:32:35 -07:00
vsavkin
bb9dfbc578
fix(router): use encodeUri/decodeUri to encode fragment
2016-08-26 10:32:35 -07:00
vsavkin
0bb516fae2
fix(router): fix the order of guards, so canActivateChild runs before canActivate
2016-08-26 10:32:35 -07:00
vsavkin
2ffecc0e14
fix(router): update the location before activating components
2016-08-26 10:32:35 -07:00
Igor Minar
ea2e5521e8
refactor: replace any[] with Provider[] where possible
2016-08-25 13:29:03 -07:00
Victor Savkin
f1ce7607a6
fix(router): canLoad should cancel a navigation instead of failing it ( #11001 )
2016-08-24 10:20:44 -07:00
Alex Rickabaugh
5ddecb18a7
feat(router): throw a helpful error when misusing forRoot() from a lazy module. ( #10996 )
2016-08-23 11:57:58 -07:00
Brandon
cc0e3d2296
docs(router): Added additional router documentation including cheatsheet updates ( #10802 )
2016-08-19 15:48:09 -07:00
Victor Savkin
00e157dc3b
refactor(router): update stability labels ( #10902 )
2016-08-17 15:35:30 -07:00
Trotyl Yu
2451eb9ded
docs(router): Explanation in code should be comment ( #10790 )
2016-08-16 19:38:23 -07:00
Trotyl Yu
ed639784d4
docs(router): Fix mismatching of code and comment ( #10791 )
2016-08-16 19:37:53 -07:00
Victor Savkin
24e280a21a
refactor(router): remove deprecated apis ( #10658 )
2016-08-16 13:40:28 -07:00
Victor Savkin
6b26102931
feat(router): extend support for lazy loading children ( #10705 )
2016-08-15 21:11:09 -07:00
Rob Wormald
73c0a9daaf
fix(router): make routerLinkActiveOptions public ( #10758 )
2016-08-15 00:39:59 -07:00
Victor Savkin
04c6b2fe85
fix(router): location changes and redirects break the back button ( #10742 )
2016-08-12 14:30:51 -07:00
Victor Savkin
cc6749c158
fix(router): lazy loading keeps refetching modules ( #10707 )
2016-08-11 22:59:53 -07:00
vsavkin
947f9c3f56
feat(router): make router.config public
2016-08-11 22:56:10 -07:00
Miško Hevery
b96869afd2
refactor(Type): merge Type and ConcreType<?> into Type<?> ( #10616 )
...
Closes #9729
BREAKING CHANGE:
`Type` is now `Type<T>` which means that in most cases you have to
use `Type<any>` in place of `Type`.
We don't expect that any user applications use the `Type` type.
2016-08-10 18:21:28 -07:00
Victor Savkin
6db27153ef
Router Fixes ( #10579 )
...
* fix(router): copy over data during data resolution
* fix(router): components instantiated in lazy-loaded modules should use location's injector
2016-08-10 15:53:57 -07:00
Victor Savkin
c7f3aa71fb
fix(router): support relative param-only navigation ( #10613 )
2016-08-09 17:03:17 -07:00
vsavkin
1a41bd1ca4
feature(router): add route.root returning the root of router state
2016-08-08 09:15:59 -07:00
vsavkin
5a99393355
fix(router): route.parent should work for secondary children
2016-08-08 09:15:59 -07:00
vsavkin
afcb3c0035
fix(router): support outlets in non-absolute positions
2016-08-08 09:15:59 -07:00
vsavkin
d2d36c61f3
fix(router): fix matrix params check to handle 'special' objects
2016-08-08 09:15:59 -07:00
vsavkin
c586656d43
fix(router): fix type definition
2016-08-05 13:12:21 -07:00
vsavkin
3a307c2794
fix(router): absolute redirects should work with lazy loading
2016-08-05 13:12:21 -07:00
vsavkin
4f17dbc721
fix(router): add segmentPath to the link DSL
2016-08-05 13:12:21 -07:00
Jason Choi
83e2d3d1cb
refactor(RegExpWrapper): remove the facade ( #10512 )
2016-08-05 09:50:49 -07:00