guy below i given my code sample it's returning (Uncaught ReferenceError: updateData is not defined) error . could you help me to find what i am missing , pls help me to make it workable .
here you can find code , my service returning JSONP response .
var student = angular.module("studentModule", []);
student.controller("StudentCtrl", ["$scope", "$http", function($scope, $http) {
$http({
method: 'jsonp',
url: 'http://abelski.com/courses/ajax/data.json?callback=updateData'
})
.success(function (data, status, headers, config) {
$scope.students = data;
})
.error(function (data, status, headers, config) {
});
}]);