I am creating a service in ionic using
angular.factory('abc', function($http) {
return {
abcDEF: function() {
return $http.get("http://localhost:8001/abc");
}
} });
and my controller is
app.controller('abc',function($scope,$http) {
$scope.counter = 0;
$scope.count = function (inc) {
$scope.counter += inc;
};
});
and my node.js code is
app.get('/abc', function(req,res){
res.send("hello");
});
where i am going wrong ???
and i am unable to get the localhost:3000/abc