Without novalidate clicking submit will be invalid

Description

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><!-- ww  w . jav a  2s.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>

Click to view the demo





















Home »
  AngularJS »
    AngularJS Example »




Controller
Directives
Expression
Filter
Form
Inject
Scope
Server
Style
Template
Utilities