4176832266
refactor(router): compile router cleanly with TypeScript 2.4 ( #18465 )
2017-08-02 17:32:27 -07:00
71de92a189
docs(router): fix typo ( #18479 )
2017-08-02 17:31:33 -07:00
baf4ce0dd0
build: enable TSLint on the packages folder ( #18459 )
...
porting PRs #18392 and #18441 to 4.x
2017-08-02 15:23:33 -07:00
12b8e1af55
Revert "fix(router): should throw when lazy loaded module doesn't define any routes ( #15001 )"
...
This reverts commit be49e0ee93
.
2017-07-27 13:05:36 -07:00
b9e32c833a
fix(router): child CanActivate guard should wait for parent to complete ( #18110 )
...
Closes #15670
PR Close #18110
2017-07-26 17:52:47 -05:00
be49e0ee93
fix(router): should throw when lazy loaded module doesn't define any routes ( #15001 )
...
Closes #14596
PR Close #15001
2017-07-26 16:49:50 -05:00
3d17a3672e
docs(router): minor typo ( #18226 )
...
Fix a minor typo in the description of a router spec.
2017-07-26 12:00:00 -05:00
5d275e994a
fix(router): terminal route in custom matcher
2017-07-18 10:54:32 -07:00
1ac78bfd5d
fix(router): canDeactivate guards should run from bottom to top
...
Closes #15657 .
2017-07-18 10:54:15 -07:00
4340beacea
fix(router): should navigate to the same url when config changes
...
Closes #15535
2017-07-18 10:54:09 -07:00
ec89f378fc
fix(router): should run resolvers for the same route concurrently
...
Fixes #14279
2017-07-18 10:54:04 -07:00
df06e8b7a4
fix(router): fix outdated homepage url in NPM package ( #17899 )
2017-07-11 12:00:56 -07:00
c723d42d0a
refactor: fix typos ( #18000 )
2017-07-07 16:55:17 -07:00
ae27af7399
fix(router): encode URLs the same way AngularJS did (closer to spec) ( #17890 )
...
fixes #16067
2017-07-06 17:10:25 -07:00
578bdeb522
fix(router): export missing UrlMatcher and UrlMatchResult types
...
Fixes #15140
2017-07-05 15:26:27 -07:00
8a1a989a1c
feat(router): add router-level events for GuardsCheck and Resolve ( #17601 )
2017-07-01 10:30:17 -07:00
3165fd3dc9
refactor(router): remove usage of deprecated Renderer
2017-06-23 16:12:43 -07:00
c59c390cdc
fix: argument destructuring sometimes breaks strictNullChecks
...
Destructuring of the form:
function foo({a, b}: {a?, b?} = {})
breaks strictNullChecks, due to the TypeScript bug https://github.com/microsoft/typescript/issues/10078 .
This change eliminates usage of destructuring in function argument lists in cases where it would leak
into the public API .d.ts.
2017-06-20 12:56:08 -07:00
d3c92a307a
fix(router): update the version placeholder so that it gets replaced during the build
...
Fixes #17403
2017-06-19 15:11:06 -07:00
7c78282ce8
docs: fix typo in 'Routes' docs
2017-06-05 11:18:43 -07:00
4c32cb952f
fix(router): opening links in new window
...
Shift-clicks on router-links should not prevent browser default action.
A follow on to:
1ac9dda93d
2017-06-02 17:32:12 -04:00
e5138081ec
build: update router package.json placeholder ( #17060 )
2017-05-30 13:19:54 -07:00
fa809ec8cf
build: import tslib rather than output TS helpers ( #16901 )
2017-05-23 14:01:39 -06:00
f1a9e3c1bb
feat(animations): introduce routeable animation support
2017-05-19 13:45:22 -07:00
5d4f5434fd
refactor(router): don't run the change detection every time an outlet is activated
...
fix(router): inside on push // SQUASH after review
2017-05-19 11:55:15 -07:00
81ca51a8f0
refactor(router): cleanup, simplification
2017-05-19 11:55:15 -07:00
86b7bd9c8e
revert: refactor(router): cleanup, simplification
...
This reverts commit 44d48d9d7a
.
2017-05-18 11:57:22 -07:00
a0a6029915
revert: refactor(router): don't run the change detection every time an outlet is activated
...
This reverts commit 198edb3109
.
2017-05-18 11:57:22 -07:00
198edb3109
refactor(router): don't run the change detection every time an outlet is activated
2017-05-17 19:32:04 -07:00
44d48d9d7a
refactor(router): cleanup, simplification
2017-05-17 19:32:04 -07:00
569b1e0eb7
fix(router): Wrap Promise-like instances in native Promises ( #16759 )
...
Hybrid apps (mix of Angular and AngularJS) might return AngularJS implementation
of Promises that do not play well with the change detection. Wrapping them in
native Promises fix this issue.
This could be the case when a Resolver returns a `$q` promise.
2017-05-12 10:03:54 -07:00
ce1d7c4a6e
refactor: use view engine also for NgModuleFactory
s ( #16658 )
...
* refactor(core): provide error message in stack for reflective DI
Fixes #16355
* fix(compiler): make AOT work with `noUnusedParameters`
Fixes #15532
* refactor: use view engine also for `NgModuleFactory`s
This is a prerequisite for being able to mock providers
in AOTed code later on.
2017-05-11 10:26:02 -07:00
d28a3f7878
docs(router): Change CanDeactivate to CanLoad ( #16237 )
...
fix mistake in docs. CanDeactivate should be CanLoad
2017-05-10 16:34:34 -07:00
d0e72a8f8f
docs(*) fix dangling links in API docs ( #16632 )
...
* docs(animations): fix links to `Component` animations
* docs(core): fix links to `ReflectiveInjector` methods
The `resolve` and other methods were moved from the
`Injector` to the `ReflectiveInjector`.
* docs(core): fix links to `Renderer`
The local links were assuming that that methods were on the
current document (e.g. `RootRenderer`), but they are actually
on the `Renderer` class.
* docs(router): fix links to methods
* docs(forms): fix links to methods
* docs(core): fix links to methods
* docs(router): fix API page links and an internal link
2017-05-09 15:51:37 -07:00
5d4b36f80f
fix(router): fix redirect to a URL with a param having multiple values ( #16376 )
...
fixes #16310
PR Close #16376
2017-05-08 17:50:33 -05:00
415a0f8047
test(router): simplify redirect tests ( #16376 )
2017-05-08 17:50:29 -05:00
71f5b73296
docs: fix links in api docs
2017-05-03 09:22:32 +01:00
2f977312be
fix(router): forward the query parameters in the ng1 -> ng2 url sync ( #16249 )
...
fixes #16067
PR Close #16249
2017-04-24 12:13:47 -05:00
5293794316
fix: turn on nullability in the code base.
2017-04-18 12:07:33 -07:00
a0d124bd91
fix(router): relax nullability requirements
2017-04-18 12:07:33 -07:00
bc431888f3
fix(router): Update types for TypeScript nullability support
...
This reverts commit ea8ffc9841
.
2017-04-18 12:07:33 -07:00
82417b3ca5
fix(router): prevent RouterLinkActive
from causing an infinite CD loop
...
fixes #15825
2017-04-17 10:15:44 -07:00
ea8ffc9841
Revert "fix(router): Update types for TypeScript nullability support"
...
This reverts commit 56c46d70f7
.
Broke in G3.
2017-04-17 09:56:09 -07:00
56c46d70f7
fix(router): Update types for TypeScript nullability support
2017-04-14 14:31:17 -07:00
ea4afebeb9
refactor(router): drop the InternalRoute
interface
2017-04-14 09:08:13 -07:00
886cca028f
refactor(router): misc refactoring
2017-04-14 09:08:13 -07:00
a487563768
fix(router): fix query param parsing
2017-04-11 11:15:11 -07:00
0ab04bd62c
refactor(router): cleanup & simplifications
2017-04-11 11:15:11 -07:00
46ce3317c3
test(router): enable running the campaign in non-ES6 browsers
...
Closes #15806 .
2017-04-10 15:43:42 -07:00
83527fd4fb
test(router): test preloading when a module is already loaded
2017-04-10 16:35:47 -06:00