2013-08-15 13 views
12

Angular 1.2 sostituito always con finally su promesse.

Così che cosa era una volta questo:

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

deve ora essere questo:

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

Ma sto ottenendo l'errore "identificatore previsto" in IE8. Come posso fare questo lavoro in IE8?

+1

Questo è [** lo stesso problema con 'catch' **] (http://stackoverflow.com/questions/23105089/angular-q-catch- metodo-non-in-IE8). –

risposta