TypeError: Auth.getUser(...).success is not a function
Opened this issue · 1 comments
Deleted user commented
http://stackoverflow.com/questions/33531336/angularjs-error-success-is-not-a-function
Had the same problem. Found it on StackOverflow.
bzdzeng commented
Getting the same error
Browser:
TypeError: Auth.getUser(...).success is not a function
However, I have in mainCtrl:
Auth.getUser() .then(function(data) { vm.user = data.data; }); });
This file uses authService.js so I looked in there. But, everything in the authService.js file is also switched to ".then()" not ".success()" so I don't know where it lies.