I am new to AngularJS and I just started to tweak around the validations that come with it but I can't get them to work for some reason:
<div class="row">
<div class="col-xs-6">
<h2>Login</h2>
<p class="text-danger">{{message}}</p>
<form name="form" novalidate>
<label>Email: </label>
<input type="email" ng-model="credentials.email" placeholder="Email" class="form-control" required />
<label>Password: </label>
<input type="password" ng-model="credentials.password" placeholder="Password" class="form-control" />
<br />
<button class="btn btn-primary" ng-click="authenticate(credentials)">Login</button>
<a href="#/register">Register</a>
</form>
</div>
</div>
I named the form and put the novalidate also. Then I tried to have the email input as required but putting the attribute there. But the form still submits and AngularJS does not stop it from submitting or shows any warnings. What am I missing?