meumobi / infomobi-v2

http://meumobi.github.io/infomobi
2 stars 6 forks source link

Migrate to angular 1.6 #273

Open vdias38 opened 7 years ago

vdias38 commented 7 years ago

https://docs.angularjs.org/guide/migration#migrate1.5to1.6 AngularJS 1.6 fixes numerous bugs and adds new features, both in core and in external modules. In addition, it includes several security and performance improvements in commonly used services, such as $compile, $injector, $parse, $animate, and directives, such as input, ngModel and select.

Own implementation concerned by upgrade

$http - Due to b54a39, $http's deprecated custom callback methods - success() and error() - have been removed. You can use the standard then()/catch() promise methods instead, but note that the method signatures and return values are different.

$q - Due to e13eea, an error thrown from a promise's onFulfilled or onRejection handlers is treated exactly the same as a regular rejection. Previously, it would also be passed to the $exceptionHandler() (in addition to rejecting the promise with the error as reason).