$ Q'最后'不IE8工作

问题描述:

角1.2替换总是最后上的承诺。

Angular 1.2 replaced always with finally on promises.

那么,什么是一旦这个:

So what was once this:

$http.get('/myurl').always(handler);

现在需要是这样的:

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

但我在IE8得到错误的预期标识符。我怎样才能使这项工作在IE8?

But I am getting the error "expected identifier" in IE8. How can I make this work in IE8?

发现:https://github.com/angular/angular.js/commit/f078762d48d0d5d9796dcdf2cb0241198677582c

$ http.get('/ myurl')终于(处理器);