Hi Billy,

the way you set up your login function makes sure the request fires 
directly!
change it to this:


      $scope.login = function() {
         AuthFactory.authenticate($scope.loginData).then(function(response) {
               console.log(response.status);
               console.log(response.data);
            }
         );
      };

That will probably explain your question faster then I can by using words :)
If you don't get why this works, and your sample not, just ask, and I will 
try to clarify it a bit more!

Regards
Sander

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to