$q 'finally' not working in IE8

£可爱£侵袭症+ 提交于 2019-12-04 17:26:08

问题


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?


回答1:


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

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



来源:https://stackoverflow.com/questions/18254205/q-finally-not-working-in-ie8

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!