Success Callback not called when $http post is in method scope
问题 I am trying to achieve a login functionality using Angular JS on front-end and PHP + Zend on the back-end. Below is the code snippet of the angular js controller. This doesn't redirect the user to the appropriate page and while debugging, the control doesn't enter the success part but enters the error part with data being NULL . However if I put the $http part outside the function, atleast the control enters the success part with data being that of the next page to be redirected. What could i