Jonathan Adamski
0589f93e41
Fixed documentation reference to canActivate in canDeactivate ( #14018 )
...
Simple update to code sample which references canActivate: ['canDeactivateTeam'].
2017-01-20 14:19:23 -08:00
Dzmitry Shylovich
69fa3bbc03
feat(router): add an extra argument to CanDeactivate interface ( #13560 )
...
Adds a `nextState` argument to access the future url from `CanDeactivate`.
BEFORE:
canDeactivate(component: T, route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean>|Promise<boolean>|boolean;
AFTER:
canDeactivate(component: T, currentRoute: ActivatedRouteSnapshot, currentState: RouterStateSnapshot, nextState?: RouterStateSnapshot): Observable<boolean>|Promise<boolean>|boolean;
Closes #9853
2016-12-27 14:08:06 -08:00
Jónatan Núñez
9591a08dfb
fix(router): Use T type in Resolve interface ( #13242 )
2016-12-08 11:24:38 -08:00
Victor Berchet
3df00828d7
docs(router): fix CanActivateChild API docs ( #12128 )
...
fixes #12127
2016-10-11 15:47:57 -07:00
vsavkin
a41c1bbdf4
docs(router): update docs of the router lifecycle interfaces
2016-09-10 16:55:14 -07:00
vsavkin
c74a438f0c
docs(router): fix up the exampesd
2016-08-30 20:37:35 -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
vsavkin
4624a35845
docs(router): fixes api docs
2016-08-01 16:23:28 -07:00
vsavkin
62e7c0f464
feat(router): implement canLoad
2016-07-26 14:39:02 -07:00
Suguru Inatomi
450f61d384
docs(router): fix provider token ( #10177 )
2016-07-20 07:27:09 -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
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
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
f2f1ec0117
feat(router): implement data and resolve
2016-06-27 14:25:56 -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
6988a550ea
cleanup(router): fix tslint errors
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
af2f5c3d7d
cleanup(router): removes router
2016-06-20 08:47:54 -07:00
Alex Eagle
f39c9c9e75
style(lint): re-format modules/@angular
2016-06-09 17:00:15 -07:00
vsavkin
b98c9e74e1
docs(router): add api docs
2016-05-03 11:35:07 -07:00
Miško Hevery
d930ad1816
chore: router move-only
2016-05-02 13:27:03 -07:00
Igor Minar
a66cdb469f
repackaging: all the repackaging changes squashed
2016-05-01 20:51:00 -07:00
Igor Minar
505da6c0a8
repackaging: all the file moves
2016-05-01 20:51:00 -07:00