I've recently been asked to try and fix an app built in angularjs to work in IE7. The main issue seems to be retrieving data from the server.
The following example code works on all browsers > IE7
$scope.getEntity = function (id, callback) {
$http.get('/views/entities/' + id).
success(function(data) {
$scope.entity = data;
callback();
}).
error(function(data) {
$window.location.href = '/error';
});
};
When this fires in IE7 it always ends up throwing an error with an undefined data parameter and redirects to the error page.
Any ideas why this would be happening? It's only isolated to IE7 as it works fine in all other browsers.