This may seem like a naive question, but I am stuck and new to Angular. Despite searching extensively, I have not been able to find a solution.
var app=angular.module('myApp',['ngResource']);
app.controller('myCtrl',['$scope','$resource',function ($scope,$resource) {
// body...
var data= $resource('http://ip/category/something',{"p1":76,"p3":9}, { charge: { method: 'POST' } });
console.log(data);
}]);
I am struggling to retrieve the data from the server as it is returning a function. Can someone please provide an explanation if possible?