angularjs decorator to support ie8 catch
When using the angularjs $q library with ES3 browsers (IE8 etc) you get an ‘Expected identifier’ error when you try and use the catch method on angularjs $q library. This is because catch is a reserved word in ES3 and reserved words are not supported as property names in ES3. To get round the problem you can access the function using square bracket notation. Personally I find this kind of syntax rather ugly.
[Read More]