Hi i have tried creating a simple sign in service, but ended up with this error.
My service
foodModule.factory('Login', function($resource){
return $resource('http://localhost:1337/User/', {}, {
});
});
my fucntion
$scope.signIn=function(){
console.log('Sign in function works');
console.log($scope.user.signemail);
console.log($scope.user.signpassword);
$scope.signuser=Login.get({email:$scope.user.signemail,password:$scope.user.signpassword});
console.log($scope.signuser);
}
Error:
Error: [$resource:badcfg] http://errors.angularjs.org/1.3.15/$resource/badcfg?p0=get&p1=object&p2=array
Am i doing anything wrong here? I hope i should mention the method properly, any idea on this error??