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(
Yes, IE8 thinks it's a keyword. You can get around this a couple of ways:
promise.then(function() { })['catch'](function() { });promise.then(function() { /* success handler */ })).then(null, function() { /* error handler */ });then statement, if such a thing is appropriate: promise.then(function() { /* success handler here */ }, function() { /* error handler here */ });catch is shorthand for #2.