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
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
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
Victor Berchet
5a4e46db20
refactor(tests): simplify code ( #11485 )
2016-09-09 12:04:38 -07:00
Victor Berchet
1df69cb4d2
fix(DomSchemaRegistry): detect invalid elements
2016-08-30 21:32:03 -07:00
vsavkin
c350ba29f6
fix(router): do not use rx/add/operator
2016-08-30 20:37:35 -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
vsavkin
2fc5c57b31
feat(router): add support for custom error handlers
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
3aaf064d11
refactor(router): remove ROUTER_DIRECTIVES which were replaced by RouterModule
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
Victor Savkin
53c99cfc95
feat(router): add syntax sugar for confuguring RouterTestingModule ( #10906 )
2016-08-19 16:01:59 -07:00
vsavkin
9318033294
refactor(router): update router spec not to use TestComponentBuilder
2016-08-17 08:06:32 -07:00
Victor Savkin
24e280a21a
refactor(router): remove deprecated apis ( #10658 )
2016-08-16 13:40:28 -07:00
Julie Ralph
4c9900dc3a
refactor(testing): remove deprecated testing functions ( #10832 )
...
Remove TestComponentBuilder, addProviders, and withProviders. These
were deprecated in rc5 - see the changelog for update information.
Note - this does not actually remove the functions, but makes them
internal only. They will be removed from the codebase entirely
at a later time.
2016-08-15 21:40:37 -07:00
Victor Savkin
6b26102931
feat(router): extend support for lazy loading children ( #10705 )
2016-08-15 21:11:09 -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
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
Marc Laval
c8da7e995f
test(router): Android browser does not support element.click()
2016-08-09 13:25:20 -07:00
Marc Laval
8be6b12c2b
test(router): use Object.isFrozen instead of relying on an exception
2016-08-09 13:25:20 -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
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
Brandon
63b82cd730
feat(router): Allow navigation without updating the URL ( #9608 )
2016-08-04 11:46:09 -07:00
vsavkin
422d380b3e
feat(router): add queryParams and fragment to every activated route
2016-08-03 15:30:03 -07:00
vsavkin
550ab31bd0
feat(router): add parent, children, firstChild to ActivatedRoute
2016-08-03 15:30:03 -07:00
vsavkin
5fceb21549
refactor(router): remove dead code
2016-08-03 15:30:03 -07:00
vsavkin
29caa37943
feat(router): support sibling modules providing routes
2016-08-02 13:31:15 -07:00
vsavkin
3e377f520e
fix(router): make an outlet to unregister itself when it is removed from the dom
2016-08-01 16:56:38 -07:00
Suguru Inatomi
0d6cc17252
fix(UrlParser): stop setting default value 'true' ( #10399 )
2016-07-30 14:34:03 -07:00
vsavkin
3c3e9ddb10
feat(router): add a validation to make sure pathMatch is set correctly
2016-07-29 12:27:43 -07:00
Tobias Bosch
d0a95e35af
refactor(testing): introduce new testing api to support ng modules
...
BREAKING CHANGE:
- deprecations:
* `withProviders`, use `TestBed.withModule` instead
* `addProviders`, use `TestBed.configureTestingModule` instead
* `TestComponentBuilder`, use `TestBed.configureTestModule` / `TestBed.override...` / `TestBed.createComponent` instead.
Closes #10354
2016-07-29 04:47:18 -07:00
vsavkin
9d9e9c6ff1
refactor(router): take advantage of the new way of configuring modules
2016-07-27 10:24:29 -07:00
vsavkin
62e7c0f464
feat(router): implement canLoad
2016-07-26 14:39:02 -07:00
Tobias Bosch
6f4e49ed53
refactor(core): rename `precompile` into `entryComponents`.
...
Part of #10043
BREAKING CHANGE:
- `@Component.precompile` was renamed to `@Component.entryComponents`
(old property still works but is deprecated)
- `ANALYZE_FOR_PRECOMPILE` was renamed to `ANALYZE_FOR_ENTRY_COMPONENTS` (no deprecations)
2016-07-26 07:04:36 -07:00
Tobias Bosch
46b212706b
refactor(core): change module semantics
...
This contains major changes to the compiler, bootstrap of the platforms
and test environment initialization.
Main part of #10043
Closes #10164
BREAKING CHANGE:
- Semantics and name of `@AppModule` (now `@NgModule`) changed quite a bit.
This is actually not breaking as `@AppModules` were not part of rc.4.
We will have detailed docs on `@NgModule` separately.
- `coreLoadAndBootstrap` and `coreBootstrap` can't be used any more (without migration support).
Use `bootstrapModule` / `bootstrapModuleFactory` instead.
- All Components listed in routes have to be part of the `declarations` of an NgModule.
Either directly on the bootstrap module / lazy loaded module, or in an NgModule imported by them.
2016-07-26 07:04:10 -07:00
vsavkin
6f68330fa5
feat(router): rename UrlPathWithParams into UrlSegment
...
BREAKING CHANGE:
UrlPathWithParams => UrlSegment
UrlSegment => UrlSegmentGroup
2016-07-25 12:15:07 -07:00