angular-docs-cn/modules/@angular/router/test
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
..
utils fix(router): route.parent should work for secondary children 2016-08-08 09:15:59 -07:00
apply_redirects.spec.ts fix(router): support redirects to named outlets 2016-11-17 14:10:59 -08:00
config.spec.ts fix(router): validate nested routes (#13224) 2016-12-06 10:41:01 -08:00
create_router_state.spec.ts feat(router): add support for custom route reuse strategies 2016-11-29 23:21:41 -08:00
create_url_tree.spec.ts chore(lint): remove unused imports (#11923) 2016-09-27 17:12:25 -07:00
integration.spec.ts feat(router): add an extra argument to CanDeactivate interface (#13560) 2016-12-27 14:08:06 -08:00
recognize.spec.ts feat(router): add support for custom url matchers 2016-11-09 16:24:58 -08:00
router.spec.ts fix(router): throw a better error message when angular 1 is not bootstraped 2016-12-05 10:57:24 -08:00
router_module.spec.ts fix(router): avoid router initialization for non root components 2016-11-11 11:15:17 -08:00
router_preloader.spec.ts chore(lint): remove unused imports (#11923) 2016-09-27 17:12:25 -07:00
router_state.spec.ts fix(router): call data observers when the path changes 2016-11-01 11:28:43 -07:00
spy_ng_module_factory_loader.spec.ts fix(router): module loader should start compiling modules when stubbedModules are set (#11742) 2016-10-20 10:58:53 -07:00
url_serializer.spec.ts fix(router): add support for query params with mulitple values 2016-12-08 18:42:58 -08:00
url_tree.spec.ts fix(router): Route.isActive also compares query params (#12321) 2016-11-11 13:23:47 -08:00