angular-docs-cn/modules/angular2/test/router/integration
cexbrayat b87da8f47c refactor(router): RouteData as a type
BREAKING CHANGE

The ROUTE_DATA token has been removed and replaced with a type RouteData,
allowing a type injection like we do with RouteParams.

Before:

    constructor(routeParams: RouteParams, @Inject(ROUTE_DATA) routeData) {
      let id = routeParams.get('id');
      let name = ROUTE_DATA.name;
    }

After:

    constructor(routeParams: RouteParams, routeData: RouteData) {
      let id = routeParams.get('id');
      let name = routeData.get('name');
    }

Fixes #4392

Closes #4428
2015-10-27 14:23:44 +00:00
..
lifecycle_hook_spec.ts refactor(router): RouteData as a type 2015-10-27 14:23:44 +00:00
navigation_spec.ts refactor(router): RouteData as a type 2015-10-27 14:23:44 +00:00
router_integration_spec.ts fix(router): respect LocationStrategy when constructing hrefs in links 2015-10-27 10:45:49 +00:00
router_link_spec.ts feat(router): add support for route links with no leading slash 2015-10-27 09:01:16 +00:00