Chuck Jazdzewski
0cc87c5ba1
Revert "fix(router): do not call `location.go` when skipping a navigation ( #19463 )"
...
This reverts commit fdfa31798b
.
2017-10-06 18:15:16 -07:00
vsavkin
fdfa31798b
fix(router): do not call `location.go` when skipping a navigation ( #19463 )
...
Closes #18036
PR Close #19463
2017-10-06 15:35:25 -07:00
vsavkin
b67d574a95
fix(router): navigating to the current location works ( #19463 )
...
Closes #13340
PR Close #19463
2017-10-06 15:35:24 -07:00
Victor Berchet
6a9ce67714
Revert "refactor(core): Removed readonly getters and changed to readonly ( #19225 )"
...
This reverts commit 2b84b86fc0
.
2017-09-28 13:36:44 -07:00
Victor Savkin
a9d32a3f89
fix(router): resolve and guards should be able to reject with null and undefined ( #19418 )
...
Closes #17148
2017-09-28 11:06:08 -07:00
tinayuangao
2b84b86fc0
refactor(core): Removed readonly getters and changed to readonly ( #19225 )
...
variables
2017-09-28 09:36:29 -07:00
Alex Eagle
82e49230ff
build: Give names to the AMD modules nested in Angular UMD distro ( #19425 )
2017-09-28 09:29:22 -07:00
Olivier Combe
0f5c70d563
build: update npm dependencies ( #19328 )
...
PR Close #19328
2017-09-22 13:20:52 -07:00
Chuck Jazdzewski
f96142cd7c
build: remove references to `tsc-wrapped` ( #19298 )
...
With this commit `ngc` is used instead of `tsc-wrapped` for
collecting metadata and tsickle rewriting and `tsc-wrapped`
is removed from the repository.
`@angular/tsc-wrapped@5` is now deprecated and is no longer
used, updated, or maintained as part as of Angular 5.x.x.
`@angular/tsc-wrapped@4` is still maintained and required by
Angular 4.x.x and will be maintained as long as 4.x.x is in
LTS.
PR Close #19298
2017-09-21 13:55:52 -07:00
cexbrayat
2c4107c531
fix(router): fix activation events toString and docs ( #19147 )
...
PR Close #19147
2017-09-20 13:52:21 -07:00
Yuan Gao
549f2254b4
refactor(core): remove getters for packages/animations, language-service, platform-browser, router ( #19151 )
...
PR Close #19151
2017-09-20 12:38:37 -07:00
Jason Aden
15e8d50313
build: roll up to named .js files rather than 'index.js' ( #19190 )
...
PR Close #19190
2017-09-19 16:59:18 -07:00
Olivier Combe
a9ef858359
refactor(router): remove deprecated `RouterOutlet` properties
...
BREAKING CHANGE: `RouterOutlet` properties `locationInjector` and `locationFactoryResolver` have been removed as they were deprecated since v4.
2017-09-08 16:19:32 -04:00
Jason Aden
8f7915022c
feat(router): add ActivationStart/End events
2017-09-08 13:24:26 -04:00
Jason Aden
66f0ab0371
fix(router): adjust ChildActivation events to only fire when the child is actually changing ( #19043 )
...
* The problem was with the `fireChildActivationStart` function. It was taking a `path` param, which was an
array of `ActivatedRouteSnapshot`s. The function was being fired for each piece of the route that was being
activated. This resulted in far too many `ChildActivationStart` events being fired, and being fired on routes
that weren't actually getting activated. This change fires the event only for those routes that are actually
being activated.
fixes #18942
PR Close #19043
2017-09-05 15:46:29 -05:00
Jason Aden
dce36751f5
refactor(router): remove RouteEvent base class ( #19043 )
...
* Introduced with #18407 , `RouteEvents` don't actually have a common constructor. Reverting here to be able to add new functionality to ChildActivation events.
PR Close #19043
2017-09-05 15:46:29 -05:00
Jason Aden
fd701b07f0
build: publish tree of files rather than FESMs ( #18541 )
...
* Remove now unnecessary portions of build.
* Add a compilePackageES5 method to build ES5 from sources
* Rework all package.json and rollup config files to new format
* Remove "extends" from tsconfig-build.json files and fixup compilation roots
PR Close #18541
2017-08-31 15:34:50 -07:00
Miško Hevery
a80ecf6a77
Revert "refactor(router): remove deprecated `initialNavigation` options ( #18781 )"
...
This reverts commit d76761bf01
.
2017-08-22 18:39:06 -05:00
Miško Hevery
7236095f6f
Revert "refactor(router): remove deprecated `RouterOutlet` properties ( #18781 )"
...
This reverts commit d1c4a94bbf
.
2017-08-22 18:38:53 -05:00
Olivier Combe
d1c4a94bbf
refactor(router): remove deprecated `RouterOutlet` properties ( #18781 )
...
BREAKING CHANGE: `RouterOutlet` properties `locationInjector` and `locationFactoryResolver` have been removed as they were deprecated since v4.
PR Close #18781
2017-08-22 16:53:00 -05:00
Olivier Combe
d76761bf01
refactor(router): remove deprecated `initialNavigation` options ( #18781 )
...
BREAKING CHANGE: the values `true`, `false`, `legacy_enabled` and `legacy_disabled` for the router parameter `initialNavigation` have been removed as they were deprecated. Use `enabled` or `disabled` instead.
PR Close #18781
2017-08-22 16:53:00 -05:00
Chuck Jazdzewski
3a227a1f6f
refactor(router): compile router cleanly with TypeScript 2.4 ( #18465 )
2017-08-02 17:32:02 -07:00
Jan Peer Stöcklmair
81cb5bc3a7
docs(router): fix typo ( #18479 )
2017-08-02 17:31:09 -07:00
Jason Aden
49cd8513e4
feat(router): add events tracking activation of individual routes
...
* Adds `ChildActivationStart` and `ChildActivationEnd`
* Adds test to verify the PreActivation phase of routing
2017-08-01 10:44:00 -07:00
Victor Berchet
9479a106bb
build: enable TSLint on the packages folder
2017-07-31 15:47:57 -07:00
Miško Hevery
a7f2468184
Revert "fix(router): should throw when lazy loaded module doesn't define any routes ( #15001 )"
...
This reverts commit 82923a381d
.
2017-07-27 10:53:01 -07:00
Dzmitry Shylovich
086f4aa72c
fix(router): child CanActivate guard should wait for parent to complete ( #18110 )
...
Closes #15670
PR Close #18110
2017-07-26 17:11:22 -05:00
Dzmitry Shylovich
82923a381d
fix(router): should throw when lazy loaded module doesn't define any routes ( #15001 )
...
Closes #14596
PR Close #15001
2017-07-26 17:11:07 -05:00
Lars Gyrup Brink Nielsen
c67bad4f43
docs(router): minor typo ( #18226 )
...
Fix a minor typo in the description of a router spec.
2017-07-20 09:32:34 -07:00
Sam Verschueren
b399cb26d9
fix(router): terminal route in custom matcher
2017-07-18 10:25:18 -07:00
Roy Ling
e20cfe1bbc
fix(router): canDeactivate guards should run from bottom to top
...
Closes #15657 .
2017-07-18 10:04:39 -07:00
Dzmitry Shylovich
eb6fb5f87e
fix(router): should navigate to the same url when config changes
...
Closes #15535
2017-07-18 10:04:11 -07:00
Dzmitry Shylovich
ad3029e786
fix(router): should run resolvers for the same route concurrently
...
Fixes #14279
2017-07-18 10:03:33 -07:00
Yaroslav Admin
df06e8b7a4
fix(router): fix outdated homepage url in NPM package ( #17899 )
2017-07-11 12:00:56 -07:00
Victor Berchet
c723d42d0a
refactor: fix typos ( #18000 )
2017-07-07 16:55:17 -07:00
Jason Aden
ae27af7399
fix(router): encode URLs the same way AngularJS did (closer to spec) ( #17890 )
...
fixes #16067
2017-07-06 17:10:25 -07:00
Igor Minar
578bdeb522
fix(router): export missing UrlMatcher and UrlMatchResult types
...
Fixes #15140
2017-07-05 15:26:27 -07:00
Jason Aden
8a1a989a1c
feat(router): add router-level events for GuardsCheck and Resolve ( #17601 )
2017-07-01 10:30:17 -07:00
Pawel Kozlowski
3165fd3dc9
refactor(router): remove usage of deprecated Renderer
2017-06-23 16:12:43 -07:00
Alex Rickabaugh
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
Igor Minar
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
Rafael
7c78282ce8
docs: fix typo in 'Routes' docs
2017-06-05 11:18:43 -07:00
Robert Spier
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
Chuck Jazdzewski
e5138081ec
build: update router package.json placeholder ( #17060 )
2017-05-30 13:19:54 -07:00
Jason Aden
fa809ec8cf
build: import tslib rather than output TS helpers ( #16901 )
2017-05-23 14:01:39 -06:00
Matias Niemelä
f1a9e3c1bb
feat(animations): introduce routeable animation support
2017-05-19 13:45:22 -07:00
Victor Berchet
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
Victor Berchet
81ca51a8f0
refactor(router): cleanup, simplification
2017-05-19 11:55:15 -07:00
Matias Niemelä
86b7bd9c8e
revert: refactor(router): cleanup, simplification
...
This reverts commit 44d48d9d7a
.
2017-05-18 11:57:22 -07:00
Matias Niemelä
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