angular-cn/tools/public_api_guard/common
Jason Aden 4277600d5e feat(common): provide replacement for AngularJS $location service (#30055)
This commit provides a replacement for `$location`. The new service is written in Angular, and can be consumed into existing applications by using the downgraded version
of the provider.

Prior to this addition, applications upgrading from AngularJS to Angular could get into a situation where AngularJS wanted to control the URL, and would often parse or se
rialize the URL in a different way than Angular. Additionally, AngularJS was alerted to URL changes only through the `$digest` cycle. This provided a buggy feedback loop
from Angular to AngularJS.

With this new `LocationUpgradeProvider`, the `$location` methods and events are provided in Angular, and use Angular APIs to make updates to the URL. Additionally, change
s to the URL made by other parts of the Angular framework (such as the Router) will be listened for and will cause events to fire in AngularJS, but will no longer attempt
 to update the URL (since it was already updated by the Angular framework).

This centralizes URL reads and writes to Angular and should help provide an easier path to upgrading AngularJS applications to Angular.

PR Close #30055
2019-04-24 13:49:29 -07:00
..
http docs: remove all deprecated `@stable` jsdoc tags (#23210) 2018-04-10 21:49:32 -07:00
common.d.ts feat(common): provide replacement for AngularJS $location service (#30055) 2019-04-24 13:49:29 -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): provide replacement for AngularJS $location service (#30055) 2019-04-24 13:49:29 -07:00
upgrade.d.ts feat(common): provide replacement for AngularJS $location service (#30055) 2019-04-24 13:49:29 -07:00