angular-docs-cn/modules/angular2/platform
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
..
testing refactor(Location): out of router and into platform/common 2016-04-20 04:28:47 +00:00
browser.ts revert(format): Revert "chore(format): update to latest formatter" 2016-04-12 09:41:01 -07:00
browser_static.ts revert(format): Revert "chore(format): update to latest formatter" 2016-04-12 09:41:01 -07:00
common.ts refactor(Location): out of router and into platform/common 2016-04-20 04:28:47 +00:00
common_dom.ts refactor(Location): out of router and into platform/common 2016-04-20 04:28:47 +00:00
server.dart refactor(core): move render/dom from core 2015-11-17 15:53:55 -08:00
server.ts refactor(core): move render/dom from core 2015-11-17 15:53:55 -08:00
worker_app.dart feat(WebWorker): Add Router Support for WebWorker Apps 2016-01-26 21:07:12 -08:00
worker_app.ts revert(format): Revert "chore(format): update to latest formatter" 2016-04-12 09:41:01 -07:00
worker_render.dart feat(WebWorker): Add Router Support for WebWorker Apps 2016-01-26 21:07:12 -08:00
worker_render.ts revert(format): Revert "chore(format): update to latest formatter" 2016-04-12 09:41:01 -07:00