I\'ve been googling this for hours...
here\'s my angularJS code:
var FrontControllers = angular.module(\'FrontControllers\', [] );
FrontControllers.cont
Angular will not preventDefault()
if the action
parameter is set. See here
For this reason, Angular prevents the default action (form submission to the server) unless the element has an action attribute specified.
You should probably also use ng-submit="login()
on the <form>
instead of ng-click
, so that it will submit the form when the user presses Enter
Try removing form's
action="/webapi/login"
and button's
type="submit"