12

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?

Tim Kindberg
  • 3,605
  • 1
  • 25
  • 26

1 Answers1

36

Found it: https://github.com/angular/angular.js/commit/f078762d48d0d5d9796dcdf2cb0241198677582c

$http.get('/myurl')["finally"](handler);

Tim Kindberg
  • 3,605
  • 1
  • 25
  • 26