I am not able to bind the scope variables to the get service in controller.
My service file
app.service('loginService', function ($http) {
var Service = {};
Service.getLogin = function () {
return $http.get('http://183.8/HMS/Service1.svc/LoginVerification/');
};
return Service;
})
and in my controller i have to use above service like below by passing email id and password
loginService.getLogin( + $scope.emailId + '/' + $scope.password);
without service i am able to get the solution but with service this two parameters are not binding to URL,Any solution please help.