I would like to call the login function when I click the login button but keep getting the error message in the title. Can someone point out the error in my script?
Edge case here, but I want to mention it for posterities' sake. I got this same error when using the controllerAs pattern with a form name with the same value as ng-submit. For example:
Throws: TypeError: v2.signUp is not a function
The solution was to change the name of the form to something different: