angular-docs-cn/tools/public_api_guard/common
Jason Aden b44b14368f feat(common): add ability to retrieve the state from Location service (#30055)
Previously there wasn't a way to retrieve `history.state` from the `Location` service. The only time the framework exposed this value was in navigation events. This meant if you weren't using the Angular router, there wasn't a way to get access to this `history.state` value other than going directly to the DOM.

This PR adds an API to retrieve the value of `history.state`. This will be useful and needed to provide a backwards-compatible `Location` service that can emulate AngularJS's `$location` service since we will need to be able to read the state data in order to produce AngularJS location transition events.

This feature will additionally be useful to any application that wants to access state data through Angular rather than going directly to the DOM APIs.

PR Close #30055
2019-04-24 13:49:28 -07:00
..
http docs: remove all deprecated `@stable` jsdoc tags (#23210) 2018-04-10 21:49:32 -07:00
common.d.ts feat(common): add ability to retrieve the state from Location service (#30055) 2019-04-24 13:49:28 -07:00
http.d.ts feat: add support for TypeScript 3.1 (#26151) 2018-09-28 09:34:51 -07:00
testing.d.ts feat(common): add ability to retrieve the state from Location service (#30055) 2019-04-24 13:49:28 -07:00