Angular 1.2 replaced always
with finally
on promises.
So what was once this:
$http.get('/myurl').always(handler);
Now needs to be this:
$http.get('/myurl').finally(handler);
But I am getting the error "expected identifier" in IE8. How can I make this work in IE8?
Found it: https://github.com/angular/angular.js/commit/f078762d48d0d5d9796dcdf2cb0241198677582c
$http.get('/myurl')["finally"](handler);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With