I am working on writing a client web application in AngularJS which consumes some restful services in an RO Isis server. I was looking at using Spiro Angular client and in the process came across the Restangular service .. Please, I need some guidance on if I am better of using pure AngularJS or Restangular. Any pros and cons for using EITHER in a real enterprise application.
NB: My proof of concept is create, update, delete and retrieve a list from an RO server. I had the following working for my getList, but need to do the full CRUD
sampleApp.controller('XXXController', function($scope, $http) {
//Outer Restful call
$http({ method:'GET',
url: 'http://localhost:8080/XXX-webapp-1.0-SNAPSHOT/restful/services/XXXXX/actions/listAll/invoke',
headers: {'Accept': 'application/json'}
}).
success(
function (data) {
var resultType = data.resulttype;
var objects = data.result.value;
$scope.rowList= [];
console.log(objects);
if(resultType == "list"){
for(i=0; i < objects.length; i++){
//Inner Restful call
$http({ method:'GET',url: objects[i].href,headers: {'Accept': 'application/json'}
}).
success(
function (rowdata) {
$scope.rowList.push(rowdata);
}
);
}
}
}
);
});