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?
It may be a late answer by me. But It working for me
Check form name you set e.g. ng-form="login"
and function name e.g. ng-click="login()"
Then it will not work . You have to change one of them. e.g. ng-form="loginForm"