angular-cn/packages/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 fix(common): prevent repeated application of HttpParams mutations (#29045) 2019-04-23 08:43:54 -07:00
locales style: enforce buildifier lint on CI (#28186) 2019-02-26 16:57:41 -08:00
src feat(common): provide replacement for AngularJS $location service (#30055) 2019-04-24 13:49:29 -07:00
test feat(common): provide replacement for AngularJS $location service (#30055) 2019-04-24 13:49:29 -07:00
testing feat(common): provide replacement for AngularJS $location service (#30055) 2019-04-24 13:49:29 -07:00
upgrade feat(common): provide replacement for AngularJS $location service (#30055) 2019-04-24 13:49:29 -07:00
BUILD.bazel refactor(ivy): move ngcc into a higher level folder (#29092) 2019-03-20 14:45:54 -04:00
PACKAGE.md docs: add package doc files (#26047) 2018-10-05 15:42:14 -07:00
index.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
package.json build: update rxjs version requirements to 6.4.0 (#30032) 2019-04-22 11:15:33 -07:00
public_api.ts build: add bazel test rules for more packages (#21053) 2017-12-22 13:10:51 -08:00
tsconfig-build.json build: remove references to `tsc-wrapped` (#19298) 2017-09-21 13:55:52 -07:00