Brandon
63b82cd730
feat(router): Allow navigation without updating the URL ( #9608 )
2016-08-04 11:46:09 -07:00
Victor Savkin
2eda7a5293
fix(router): provideRouter should use provideRoutes ( #10488 )
2016-08-03 19:35:12 -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
Tobias Bosch
3d53b33391
chore: update public api and integrate minor review comments
2016-08-02 11:23:26 -07:00
Tobias Bosch
af2e80e068
refactor(core): introduce `APP_BOOTSTRAP_LISTENER` multi provider
...
Using the `registerBootstrapListener` easily lead to race condition
and needed dependencies on `ApplicationRef`.
BREAKING CHANGE:
- `ApplicationRef.registerBootstrapListener` is deprecated. Provide a multi
provider for the new token `APP_BOOTSTRAP_LISTENER` instead.
2016-08-02 11:23:26 -07:00
Tobias Bosch
8e6091de6c
refactor(core): use `ngOnDestroy` in providers
...
Note about the addition of `beforeEach(fakeAsync(inject(…))))` in some tests:
`ApplicationRef` is now using `ngOnDestroy` and there is eager,
including all of its dependencies which contain `NgZone`.
The additional `fakeAsync` in `beforeEach` ensures that `NgZone`
uses the fake async zone as parent, and not the root zone.
BREAKING CHANGE (via deprecations):
- `ApplicationRef.dispose` is deprecated. Destroy the module that was
created during bootstrap instead by calling `NgModuleRef.destroy`.
- `AplicationRef.registerDisposeListener` is deprecated.
Use the `ngOnDestroy` lifecycle hook for providers or
`NgModuleRef.onDestroy` instead.
- `disposePlatform` is deprecated. Use `destroyPlatform` instead.
- `PlatformRef.dipose()` is deprecated. Use `PlatformRef.destroy()`
instead.
- `PlatformRef.registerDisposeListener` is deprecated. Use
`PlatformRef.onDestroy` instead.
- `PlaformRef.diposed` is deprecated. Use `PlatformRef.destroyed`
instead.
2016-08-02 11:23:26 -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
vsavkin
8dc82a0080
fix(router): fix offline compilation by exporting provideLocationStrategy
2016-08-01 16:23:28 -07:00
vsavkin
4624a35845
docs(router): fixes api docs
2016-08-01 16:23:28 -07:00
Tobias Bosch
93ade740e2
fix(router): configure DI correctly when using the old `provideRouter` function
2016-08-01 02:35:41 -07:00
Tobias Bosch
a46437c57d
refactor(core): fix `bootstrapModule` regarding zones and initializers ( #10383 )
...
This makes `bootstrapModuleFactory` wait for promises
returned by `APP_INITIALIZER`s, also making `bootstrapModuleFactory` async.
I.e. now `bootstrapModule` and `bootstrapModuleFactory` behave in the
same way.
This ensures that all code from module instantiation, to creating
`ApplicationRef`s as well as calling `APP_INITIALIZERS` is run
in the Angular zone.
This also moves the invocation of the initializers from the `ApplicationRef`
constructor into the `bootstrapModuleFactory` call, allowing initializers
to get a hold of `ApplicationRef` (see #9101 ).
Fixes #9101
Fixes #10363
Fixes #10205
2016-08-01 02:12:59 -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
vsavkin
5162fb6d52
feat(router): add isActive to router
2016-07-29 12:27:43 -07:00
vsavkin
2fdb39e60a
feat(router): activateroute should expose its route config
2016-07-29 12:27:43 -07:00
vsavkin
81d27daf0d
fix(router): update dts files
2016-07-28 15:03:19 -07:00
vsavkin
bb8b82b3f5
fix(router): relax type defintion of Route to improve dev ergonomics
2016-07-28 15:03:19 -07:00
vsavkin
72da547d6a
fix(router): updates router module to be offline-compilation friendly
2016-07-28 15:03:19 -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
d15a1d64e1
fix(router): make router provides work with cli and offline compilation
2016-07-25 18:04:22 -07:00
vsavkin
6f68330fa5
feat(router): rename UrlPathWithParams into UrlSegment
...
BREAKING CHANGE:
UrlPathWithParams => UrlSegment
UrlSegment => UrlSegmentGroup
2016-07-25 12:15:07 -07:00
vsavkin
2b63330a36
fix(router): handle when both primary and secondary are empty-path and primary has a child
2016-07-22 18:51:35 -07:00
vsavkin
06e4ca4bb3
fix(router): advance query params and fragment after advanced routes
2016-07-22 18:51:35 -07:00
vsavkin
43437c175a
fix(router): handle url fragments when no url segments present
2016-07-22 18:51:35 -07:00
vsavkin
8d90a5a4cf
fix(router): router link active should take all descendants into account
2016-07-22 18:51:35 -07:00
vsavkin
93a4ca652a
refactor(router): renames PRIMARY_OUTLET into primary
2016-07-22 18:51:35 -07:00
vsavkin
27b87ef535
fix(router): throw when cannot parse a url
2016-07-21 16:14:55 -07:00
vsavkin
44709e0dca
fix(router): handle urls with only secondary top-level segments
2016-07-21 16:14:44 -07:00
vsavkin
db54a84d14
fix(router): routerLinkActive should only set classes after the router has successfully navigated
2016-07-20 17:51:21 -07:00
vsavkin
eb6ff65af7
refactor(router): makes an error message clearer
2016-07-20 14:47:51 -07:00
vsavkin
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
Suguru Inatomi
450f61d384
docs(router): fix provider token ( #10177 )
2016-07-20 07:27:09 -07:00
vsavkin
51e661eb74
fix(router): export navigation extras
2016-07-18 17:42:04 -07:00
vsavkin
921a17960c
fix(router): lazy loaded components should use loaded injector
2016-07-18 17:42:04 -07:00
vsavkin
7a4f6621ed
fix(router): handle lastPathIndex of empty-path routes
2016-07-18 17:42:04 -07:00
vsavkin
1803ed2512
fix(router): fix rollup config to properly set up rxjs
2016-07-15 16:27:54 -07:00
vsavkin
f08060b0b0
fix(router): back button does not work in IE11 and Safari
2016-07-15 14:59:59 -07:00
vsavkin
b77a4a40a4
fix(router): expose initalNavigation and dispose so they can be used with webworkers
2016-07-14 17:29:01 -07:00
vsavkin
0668ba50e8
fix(router): freeze params and queryParams to prevent common source of bugs
2016-07-14 13:33:05 -07:00
Hiroto Fukui
aa88438b54
feat(Router): add extra validation for when route was passed as Array ( #9942 )
2016-07-14 08:28:31 -07:00
vsavkin
85be729c70
fix(router): lazily-loaded modules should use loaded injectors instead of the root one
2016-07-13 18:25:30 -07:00
vsavkin
a5dc5705a3
feat(router): guards and data resolvers can now return promises
2016-07-13 18:25:30 -07:00
vsavkin
9e3d13f61f
feat(router): add support for canActivateChild
2016-07-13 18:25:30 -07:00
vsavkin
0426325ef7
fix(router): merge SystemJsAppModuleFactoryLoader and SystemJsAllModuleLoader
2016-07-13 11:16:46 -07:00
vsavkin
0b54e3cf0a
fix(router): do not fire events on 'duplicate' location events
2016-07-13 11:16:46 -07:00
vsavkin
5cf58971f1
fix(router): update current state and url before activating components
2016-07-13 11:16:46 -07:00
choeller
a46291b67c
docs(router) Added @Injectable decorators to Router API examples ( #10033 )
2016-07-13 07:27:32 -07:00
Codebacca
4ac76ca281
docs(router): fix syntax in code example of comment block ( #10026 )
2016-07-13 07:26:26 -07:00
vsavkin
ded518d47f
feat(router): update routerLink DSL to handle aux routes
2016-07-12 11:44:55 -07:00
LongYinan
61e18434d3
refactor(router): not use reserved words as variable ( #9941 )
2016-07-11 10:53:29 -07:00
vsavkin
245b0910ed
feat(router): add activate and deactivate events to RouterOutlet
2016-07-08 15:01:52 -07:00
vsavkin
a77db44129
feat(router): empty-path routes should inherit matrix params
2016-07-08 14:48:59 -07:00
vsavkin
34b3c534e7
fix(router): disallow root segments with matrix params
2016-07-08 14:47:55 -07:00
Patrice Chalin
749dec7dfb
doc(api): fix invalid doc links ( #9873 )
...
Errors were reported during API doc generation.
2016-07-07 23:02:35 -07:00
vsavkin
96a9e66616
feat(router): add the ANALYZE_FOR_PRECOMPILE provider to make dev ergonomics better
2016-07-07 18:07:10 -07:00
vsavkin
46e105f3ab
fix(router): encode/decode params and path segments
2016-07-07 17:33:42 -07:00
vsavkin
f7a0e9ecb6
fix(router): fix RouterLinKActive to work with RouterLink
2016-07-07 17:33:42 -07:00
vsavkin
72544ba551
feat(router): add RouterTestModule
2016-07-07 14:28:01 -07:00
vsavkin
c43dd5a655
refactor(router): renamed RouterAppModule into RouterModule
2016-07-07 14:28:01 -07:00
vsavkin
37e6da6dfb
refactor(router): clean up naming
2016-07-06 16:19:52 -07:00
vsavkin
8aa2a0c1b2
feat(router): add RouterAppModule
2016-07-06 16:00:40 -07:00
vsavkin
6bfd514caf
fix(router): remove a circular dep
2016-07-06 14:38:05 -07:00
vsavkin
8ebb8e44c8
feat(router): add support for lazily loaded modules
2016-07-06 14:38:05 -07:00
vsavkin
0c65d5cf2b
fix(router): handle router outlets in ngIf
2016-06-30 22:14:42 -07:00
vsavkin
f65ebec3ed
fix(router): update links when query params change
2016-06-30 22:14:42 -07:00
vsavkin
81bf3f66ca
docs(router): rename global redirects into absolute redirects
2016-06-30 22:14:42 -07:00
PatrickJS
137fff9632
fix(router): remove private and internal annotations ( #9753 )
2016-06-30 19:39:13 -07:00
Rob Wormald
dabf214f17
fix(router): remove private and internal annotations ( #9745 )
2016-06-30 14:47:55 -07:00
vsavkin
fb2539e1d5
fix(router): remove the precompile warning
2016-06-30 14:33:04 -07:00
Alex Eagle
73f017bad9
fix(typescript): make router compile with typescript@next
...
fixes #9731
2016-06-30 11:51:52 -07:00
vsavkin
a3b90411aa
fix(router): fix RouterLinkActive to handle the case when the link has extra paths
2016-06-30 09:26:57 -07:00
vsavkin
5781b96490
fix(router): redirect should not add unnecessary brackets
2016-06-30 09:26:57 -07:00
vsavkin
3784696b9e
fix(router): make the contstructor of the router service public
2016-06-28 18:39:37 -07:00
vsavkin
8c45aebc18
fix(router): make router links work on non-a tags
2016-06-28 18:39:37 -07:00
vsavkin
296a447e3c
docs(router): add api docs
2016-06-28 14:49:29 -07:00
Igor Minar
24eb8389d2
fix: public api surface fixes + stability markers
...
- ts-api-guardian will now error if a new public symbol is added with a stability marker (`@stable`, `@experimental`, `@deprecated`)
- DomEventsPlugin and KeyEventsPlugin were removed from public api surface - these classes is an implementation detail
- deprecated BROWSER_PROVIDERS was removed completely
- `@angular/compiler` was removed from the ts-api-guardian check since this package shouldn't contain anything that users need to directly import
- the rest of the api surface was conservatively marked as stable or experimental
BREAKING CHANGES: DomEventsPlugin and KeyEventsPlugin previously exported from core are no longer public - these classes are implementation detail.
Previously deprecated BROWSER_PROVIDERS was completely removed from platform-browser.
Closes #9236
Closes #9235
Ref #9234
2016-06-28 07:39:40 -07:00
vsavkin
fcfddbf79c
feat(router): add pathMatch property to replace terminal
2016-06-27 20:21:30 -07:00
vsavkin
dc64e90ab9
feat(router): use componentFactoryResolver
2016-06-27 20:21:30 -07:00
vsavkin
f2f1ec0117
feat(router): implement data and resolve
2016-06-27 14:25:56 -07:00
Alex Eagle
e913d9954d
chore(typings): restrict Angular to es5+collections+promise
2016-06-27 13:58:59 -07:00
vsavkin
d20488752b
fix(router): top-levels do not work in ngIf
2016-06-27 13:34:54 -07:00
vsavkin
855f3afb28
fix(router): canceled navigations should return a promise that is resolved with false
2016-06-27 13:34:54 -07:00
vsavkin
3f44377f2f
fix(router): handle empty path with query params
2016-06-27 13:34:54 -07:00
vsavkin
90295e3252
fix(router): preserve fragment on initial load
2016-06-27 13:34:54 -07:00
vsavkin
327d04c9c6
chore(router): clang-format
2016-06-24 12:44:32 -07:00
vsavkin
54edce2bab
fix(router): wildcard don't get notified on url changes
2016-06-24 12:44:32 -07:00
vsavkin
1a145ac500
fix(router): default exact to false in routerLinkActiveOptions
2016-06-24 12:44:32 -07:00
vsavkin
41b781107b
fix(router): doen't throw on canDeactive when route hasn't advanced
2016-06-24 12:44:32 -07:00
vsavkin
fbd2dd9ca2
fix(router): handle path:'' redirects and matches
2016-06-24 11:39:41 -07:00
Jason Choi
22d8f73bc9
test: add public api golden files
...
Includes a few style fixes on "* as foo" imports.
2016-06-23 14:26:40 -07:00
ScottSWu
ae75e3640a
chore(lint): Added license headers to most TypeScript files
...
Relates to #9380
2016-06-23 09:47:54 -07:00
vsavkin
15911367a2
refactor(router): removes a circualr dep
2016-06-21 12:17:30 -07:00
vsavkin
8dd3f59c81
chore(router): changes the router setup to align with other modules
2016-06-21 12:17:30 -07:00
vsavkin
c9d28492b7
chore(router): remove lint and format tasks from router
2016-06-21 12:17:30 -07:00
vsavkin
92d8bf9619
feat(router): add support for componentless routes
2016-06-21 12:17:30 -07:00
vsavkin
bd2281e32d
fix(resolve): change resolve not to resolve root activate route
2016-06-21 12:17:30 -07:00
vsavkin
0c50bc6449
fix(router): url serializer should handle segments without primary children
2016-06-21 12:17:30 -07:00
Dimitrios Loukadakis
f6b75f56ad
fix(router): typo in starts with slash validation error
2016-06-21 12:17:30 -07:00
vsavkin
280540e4a2
fix(router): change serialize not to require parenthesis in query string to be encoded
2016-06-21 12:17:30 -07:00
vsavkin
ca23b4c55f
feat(router): add route config validation
2016-06-21 12:17:30 -07:00
vsavkin
7e12208ca6
feat(router): do not support paths starting with /
2016-06-21 12:17:30 -07:00
vsavkin
2773281338
feat(router): drop index property
...
Use path: '/' instead of 'index: true'
2016-06-21 12:17:30 -07:00
vsavkin
f8e8d22e4e
fix(router): stringify positional parameters when using routerLink
2016-06-21 12:17:30 -07:00
vsavkin
4450e7b246
cleanup(router): enable noImplicitAny and noImplicntReturns
2016-06-21 12:17:30 -07:00
vsavkin
cdbf67ee05
test(router): add a test checking that guards work for child routes
2016-06-21 12:17:30 -07:00
Dimitrios Loukadakis
9a67f38728
fix(router): port fixes done on angular current router to the new one
...
The bugs were fixed on current angular router in the following commits:
angular/angular@b2a7fd05cb
angular/angular@fa2ce8100b
angular/angular@595bcdd1ac
Closes #12
2016-06-21 12:17:30 -07:00
vsavkin
25560ed048
feat(router): implement RouterLinkActive
2016-06-21 12:17:30 -07:00
vsavkin
2aa19fd078
feat(router): support navigating by url tree
2016-06-21 12:17:30 -07:00
vsavkin
b3e801ed9e
feat(router): make it work with TypeScript 1.8
2016-06-21 12:17:30 -07:00
vsavkin
3683fb6886
refactor(router): minor refactoring
2016-06-21 12:17:30 -07:00
vsavkin
3bd0ce291e
feat(router): mark the index property as deprecated
...
Use {path: '', component: A} instead of {index: true, component: A}
}#
2016-06-21 12:17:30 -07:00
vsavkin
523fc5536c
fix(router): fix Params type to allow passing any value types when calling router.navigate
2016-06-21 12:17:30 -07:00
Rob Wormald
15f27b5455
fix(providers): make providers static analysis friendly
2016-06-21 12:17:30 -07:00
vsavkin
127401598b
feat(router): implement terminal
2016-06-21 12:17:30 -07:00
vsavkin
f0a6329005
fix(router): fixes a typo
2016-06-21 12:17:30 -07:00
vsavkin
2982892acc
cleanup(router): clang-format
2016-06-21 12:17:30 -07:00
vsavkin
9de56481f1
feat(router): add enableTracing option
2016-06-21 12:17:30 -07:00
vsavkin
777eb2f159
feat(router): emit an event when routes are recognized
2016-06-21 12:17:30 -07:00
vsavkin
05eebe0fed
feat(router): provide meaningful toString impls
2016-06-21 12:17:30 -07:00
vsavkin
1f3f8ef6c8
fix(router): fix nested deactivation
2016-06-21 12:17:30 -07:00
vsavkin
2d4be1c9eb
fix(router): init is not triggered in certain scenarios
2016-06-21 12:17:30 -07:00
vsavkin
2fef30f619
fix(router): make stringify handle nulls
2016-06-21 12:17:30 -07:00
vsavkin
545caab433
fix(router): use bootstrap listener to trigger initial navigation
2016-06-21 12:17:30 -07:00
vsavkin
3f90659cc1
fix(router): supports index routes with path
2016-06-21 12:17:30 -07:00
vsavkin
131914ac94
fix(router): fix lazy loading issues
2016-06-21 12:17:30 -07:00
vsavkin
29a7c4538c
Revert "fix(provider): fix a circular dependency & remove common providers"
...
This reverts commit 6375fdd4f2928d5ddeccaf11a8589a7668bc9049.
2016-06-21 12:17:30 -07:00
vsavkin
66caabca0c
feat(router): implement redirectTo
2016-06-21 12:17:30 -07:00
Victor Berchet
25c6a3715d
fix(provider): fix a circular dependency & remove common providers
2016-06-21 12:17:30 -07:00
Mike Ryan
97cf0e40d5
fix(guards): Cancel in-flight guards if one returns false
2016-06-21 12:17:30 -07:00
vsavkin
6988a550ea
cleanup(router): fix tslint errors
2016-06-21 12:17:30 -07:00
Victor Berchet
dadd5ddded
chore: add lint and clang-format
2016-06-21 12:17:30 -07:00
vsavkin
ed50e17e5b
refactor(router): rename queryParameters into queryParams
2016-06-21 12:17:30 -07:00
vsavkin
33b518ad21
feat(router): update RouterLink to support query params and fragment
2016-06-21 12:17:30 -07:00
vsavkin
b0e7c14545
fix(router): add an app initializer to trigger initial navigation
...
Closes #10
2016-06-21 12:17:30 -07:00
vsavkin
5742d4720a
fix(router): fix router to handle guards that return observable
...
Closes #19
2016-06-21 12:17:30 -07:00
vsavkin
9b356d9b86
fix(router): traverse route config in depth-first order
...
Closes #17
2016-06-21 12:17:30 -07:00
Brandon Roberts
793ac3f6b4
Configure router with provided routes
...
Closes #9
2016-06-21 12:17:30 -07:00
vsavkin
6ce7a5a1ea
docs(router): add docs
2016-06-21 12:17:30 -07:00
vsavkin
88920bfee1
feat(router): add support for basic events
2016-06-21 12:17:30 -07:00
vsavkin
2717bcc3af
feat(router): implement cancelation
2016-06-21 12:17:30 -07:00
vsavkin
f34af4f249
feat(router): add support for using classes as guard
2016-06-21 12:17:30 -07:00
vsavkin
f04b6978fb
cleanup(router): add @internal to constructors where needed
2016-06-21 12:17:30 -07:00
vsavkin
ab958598d7
feat(router): implement CandDeactivate
2016-06-21 12:17:30 -07:00
vsavkin
1914847e72
cleanup(router): make strictNullChecks happy
2016-06-21 12:17:30 -07:00
vsavkin
d95f0fd83d
fix(router): fix index routes
2016-06-21 12:17:30 -07:00
vsavkin
243612e36d
refactor(router): rename candidate into snapshot
2016-06-21 12:17:30 -07:00
vsavkin
c5cca8e098
feat(router): add support for CanActivate guard
2016-06-21 12:17:30 -07:00
vsavkin
99f7404d8b
refactor(router): remove rootNode function
2016-06-21 12:17:30 -07:00
vsavkin
9ff6b0828f
feat(router): make activation sync
2016-06-21 12:17:30 -07:00
vsavkin
6f052d1daf
feat(router): add a function to resolve components
2016-06-21 12:17:30 -07:00
vsavkin
63c194b71f
feat(router): change recognize to return a router state candidate
2016-06-21 12:17:30 -07:00
vsavkin
46911117f1
feat(router): implement a function create router state out of a candidate
2016-06-21 12:17:30 -07:00
vsavkin
2de1030413
feat(router): add RouterStateCandidate
2016-06-21 12:17:30 -07:00
vsavkin
1f6ade894e
cleanup(router): fix a typo
2016-06-21 12:17:30 -07:00
vsavkin
8407cfeac7
fix(router): fix router to take root component type instead of instance
2016-06-21 12:17:30 -07:00
vsavkin
91d64a2855
feat(router): export provideRouter via index
2016-06-21 12:17:30 -07:00
vsavkin
40a06af79b
feat(router): add provideRouter to configure the router when bootstrapping an app
2016-06-21 12:17:30 -07:00
vsavkin
8aef86f4a0
feat(router): export all public api tokens via index
2016-06-21 12:17:30 -07:00
vsavkin
c179b5033b
feat(router): implement relative navigation
2016-06-21 12:17:30 -07:00
vsavkin
86f47273bc
feat(router): changes router config not to use names
2016-06-21 12:17:30 -07:00
vsavkin
2e1bd46bb1
feat(router): add createUrlTree
2016-06-21 12:17:30 -07:00
vsavkin
a9e773b47b
feat(router): serialize outlet names into the url
2016-06-21 12:17:30 -07:00
vsavkin
a5371bfb8a
cleanup: cleanup tsconfig files
2016-06-21 12:17:30 -07:00
vsavkin
4b2740f270
refactor: move index.ts into src
2016-06-21 12:17:30 -07:00
vsavkin
5b371736b2
feat: add RouterLink
2016-06-21 12:17:30 -07:00
vsavkin
c9b4bcf689
refactor: move all utility functions into the utils dir
2016-06-21 12:17:30 -07:00
vsavkin
013f9a2bbc
feat: add tree.siblings
2016-06-21 12:17:30 -07:00
vsavkin
5bf1c93ead
docs: adds missing api docs
2016-06-21 12:17:30 -07:00
vsavkin
4f6ec01932
feat: implement a simple version of the router service
2016-06-21 12:17:30 -07:00
vsavkin
1a4e911b8b
cleanup: fix type errors when compiling with strictNullChecks enabled
2016-06-21 12:17:30 -07:00
vsavkin
1f98519380
feat: implement RouterOutletMap
2016-06-21 12:17:30 -07:00
vsavkin
aad7010952
feat: add RouterOutlet
2016-06-21 12:17:30 -07:00
vsavkin
f259a2204b
feat: implement recognizer
2016-06-21 12:17:30 -07:00
vsavkin
4b1db0e61c
feat: implement default url serializer
2016-06-21 12:17:30 -07:00
vsavkin
37c5320e33
feat: implement Tree
2016-06-21 12:17:30 -07:00
vsavkin
f57df3cf8a
chore: set up test and build infrastructure
2016-06-21 12:17:30 -07:00
vsavkin
af2f5c3d7d
cleanup(router): removes router
2016-06-20 08:47:54 -07:00
Alex Eagle
37b617dccf
chore(tsickle): add @Annotation annotations
...
This lets users continue using runtime-sideeffect Decorators if they choose,
only down-leveling the marked ones to Annotations.
Also remove the "skipTemplateCodegen" option, which is no longer needed
since Angular compiles with tsc-wrapped rather than ngc. The former doesn't
include any codegen.
2016-06-16 12:29:46 -07:00
Alex Eagle
f39c9c9e75
style(lint): re-format modules/@angular
2016-06-09 17:00:15 -07:00
ScottSWu
86fbd50c3d
refactor(TypeScript): Add noImplicitAny
...
We automatically insert explicit 'any's where needed. These need to be
addressed as in #9100 .
Fixes #4924
2016-06-08 16:20:50 -07:00
Igor Minar
45de65bd45
fix(router): don't mark the RouterOutletMap as internal
...
it's currently being reexported as public api which breaks anyone tryin to import
the router because the RouterOutletMap definition is missing
2016-06-08 11:18:35 -07:00
Victor Berchet
ac1156739d
feat(i18n): extract messages
2016-06-07 15:17:02 -07:00
Victor Berchet
a6ad61d83e
refactor: change provide(...) for {provide: ...}
...
- provide() is deprecated,
- {} syntax is required by the offline compiler
2016-06-03 15:03:49 -07:00
Hannah Howard
1c929031a2
feat(router): export RouterLink and RouterOutlet ( #8912 )
...
Makes it possible to individually import RouterLink and RouterOutlet from the router module
2016-06-01 09:48:55 -07:00
Alex Eagle
2019050db2
chore(lint): enable duplicateModuleImport tslint check
2016-05-27 09:17:08 -07:00
Dimitrios Loukadakis
b2a7fd05cb
fix(router): replace state when path is equal to current path ( #8766 )
...
Same as 2bf21e1747
but for new router.
This also fixes an issue where when application loads it clears forward history
because Router constructor calls navigateByUrl which was causing a push state to happen.
2016-05-26 12:02:24 -07:00
Dimitrios Loukadakis
fa2ce8100b
fix(router): openning links in new tab
...
Clicks on router-link should not prevent browser default action when
any mouse button other than left mouse button or ctrl/meta key is pressed.
router-link href should use location strategy external url.
Closes #5908
Closes #6806
Closes #7749
Closes #8806
Closes #8821
2016-05-26 10:26:57 -07:00
Miško Hevery
39ecd01b86
chore: audit @angular/core API classification ( #8808 )
2016-05-25 15:00:05 -07:00
Dimitrios Loukadakis
595bcdd1ac
fix(router): browser back and forward buttons not working correctly.
...
Closes #8524
Closes #8532
2016-05-19 22:42:08 -07:00
Victor Berchet
6e62217b78
fix(WebWorker): remove the platform-browser dependency on compiler
2016-05-18 16:23:09 -07:00
vsavkin
b30ddfbfc5
chore(router): clang-format
2016-05-04 15:01:27 -07:00
vsavkin
abfb522f83
refactor(router): reuse existing segmentes when constructing new route trees
2016-05-04 14:51:04 -07:00
vsavkin
b8136cc26e
fix(router): provide a top-level route segment for injection
2016-05-04 14:51:04 -07:00
vsavkin
d00b26d941
refactor(router): update link to reuse url segments when possible
2016-05-04 14:51:04 -07:00