Currently, I am attempting to retrieve a JSON response from the server using Restangular.
var baseAccounts = Restangular.one('getAllCustomers');
baseAccounts.getList().then(function(customers) {
$scope.myData = customers;
console.log(customers);
});
The issue I am facing is that I consistently receive the response in the 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() {
What I actually want is just the structure of the pure JSON data. If someone could provide an example for the RestAngular plugin, I would greatly appreciate it.
Thank you for any assistance.