There are 2 requirements for this to work out of the box:
-
you need to put the input fields inside a
<form ng-submit="submitLogin()">. Notice the ng-submit directive to the -
you need to also include a
<input>or<button>withtype=submit. Be sure NOT to put a style withdisplay:noneon this button. If you want to hide it, use something like:<input type="submit" style="position: absolute; left: -9999px; width: 1px; height: 1px;"/>