I'm trying to get JSON response from server using restangular.
var baseAccounts = Restangular.one('getAllCustomers');
baseAccounts.getList().then(function(customers) {
$scope.myData = customers;
console.log(customers);
});
The problem is that I always get the response in following format:
0: Object
1: Object
2: Object
addRestangularMethod: function bound() {
all: function bound() {
allUrl: function bound() {
clone: function bound() {
customDELETE: function bound() {
customGET: function bound() {
customGETLIST: function bound() {
But I would like only structure of pure returned JSON. If could somebody put here example for RestAngular plugin I would be very glad.
Thanks for any help.