This is my controller where i am passing .username,.password to services
var value=loginService.login($scope.username,$scope.password);
In services
.service(‘loginService’, [’$resource’, function($resource){
this.login = function() {}
in these i get login undefined error pls anyone help me