angular-docs-cn/modules
Nathan Walker b602bd8c83 refactor(Location): out of router and into platform/common
closes https://github.com/angular/angular/issues/4943

BREAKING CHANGE:

`Location` and other related providers have been moved out of `router` and into `platform/common`. `BrowserPlatformLocation` is not meant to be used directly however advanced configurations may use it via the following import change.

Before:

```
import {
  PlatformLocation,
  Location,
  LocationStrategy,
  HashLocationStrategy,
  PathLocationStrategy,
  APP_BASE_HREF}
from 'angular2/router';

import {BrowserPlatformLocation} from 'angular2/src/router/location/browser_platform_location';
```

After:

```
import {
  PlatformLocation,
  Location,
  LocationStrategy,
  HashLocationStrategy,
  PathLocationStrategy,
  APP_BASE_HREF}
from 'angular2/platform/common';

import {BrowserPlatformLocation} from 'angular2/src/platform/browser/location/browser_platform_location';
```

Closes #7962
2016-04-20 04:28:47 +00:00
..
angular1_router fix(angular_1_router): Removed arrow function from module template 2016-04-19 00:44:17 +00:00
angular2 refactor(Location): out of router and into platform/common 2016-04-20 04:28:47 +00:00
benchmarks refactor(view_compiler): codegen DI and Queries 2016-04-13 14:43:48 -07:00
benchmarks_external revert(format): Revert "chore(format): update to latest formatter" 2016-04-12 09:41:01 -07:00
benchpress fix: remove typescript references to d.ts files from benchpress and e2e tests 2016-04-13 13:23:27 -07:00
payload_tests/hello_world/ts feat(dart/transform): Use angular2/platform/browser as bootstrap lib 2016-03-21 00:58:17 +00:00
playground refactor(Location): out of router and into platform/common 2016-04-20 04:28:47 +00:00