AngularJS Tutorial - Without novalidate clicking submit will be invalid








The following code shows that without novalidate clicking submit will be invalid.

Example


<!DOCTYPE html>
<html  ng-app>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.13/angular.js"></script>
</head><!--   w w  w .  ja v a 2 s.  c  o  m-->
<body ng-init="x=4; y=4">


  <form name="validateForm">
    <input type="number" ng-model="y" name="y" step="5">
    <input type="submit">
  </form>
</body>
</html>

The code above is rendered as follows: