Here is the code:
controllers.controller('roleCtrl',
['$scope', 'roleSvc', function ($scope, roleSvc) {
roleSvc.query(function (data) {
$scope.roles = data;
if (data.length > 0) {
$scope.selectedRole = data[0];
}
}, function (error) {
});
}]);
var roleSvc = services.factory('roleSvc',
['$resource', function ($resource) {
alert(0);
return $resource('/api/Role/', {}, {
get: { method: 'GET' },
query: { method: 'GET', isArray: true },
save: { method: 'POST', headers: { 'Content-Type':
'application/json' } },
update: { method: 'PUT', params: { id: '@id' }, headers: {
'Content-Type': 'application/json' } },
delete: { method: 'DELETE', params: { id: '@id' } },
});
}]);
It works well in IE9 and other browsers....but in IE8, It doesn't work.
I did everything said in this document http://docs.angularjs.org/guide/ie...
Could anyone help me please?
Thanks
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.