I'm experiencing a weird bug on IE8 while trying to catch a promise reject (promise returned by a basic ngResource
call) :
This code work with .then(success, fail)
syntax :
promise.then(function(response) {
// success
},
function(response) {
// error
});
but this one fails with .then(success).catch(fail)
syntax :
promise.then(function(response) {
// success
})
.catch(function(response) {
// error
});
and the IE error pointing to the .catch()
line is :
Expected identifier
Am I doing something wrong ? someone reproduce it ? or is it a common IE8 due to restricted keyword ?
Thanks
then(null, error)
notation which looks better than this ugly["catch"]
– Seymourseys