I need to call a Factory method from a Controller method in Angular. But when I call the Factory method AuthFactory.login(username,password).then(), it shows Error like this
TypeError: AuthFactory.login(...).then is not a function
I think I am missing here a concept of AngularJS promises.





.then- if you can post the factory, we may be able to help you put that in (it's pretty easy, but the docs are terrible)