Thank You Triniwiz!! for your help.
Original:
nameApp.controller('ViewCtrl', function($scope, eventsService) {
$scope.events = function () {
eventsService.getEvent();
}
});
Your change:
nameApp.controller('ViewCtrl', function($scope, eventsService) {
$scope.events = eventsService.getEvent();
});
So, the funciton that I created was the cause. Thanks again!
Regards,
Aj