Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.1/angular.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body ng-app="formExample">
<div ng-controller="ExampleController">
  <form novalidate ng-submit="submit()">
    Name: <input type="text" ng-model="user.name" required /><br />
    E-mail: <input type="email" ng-model="user.email" required  /><br />
    <input type="submit">    
  </form>
</pre>
</div>
  </body>
</html>
 
  angular.module('formExample', [])
    .controller('ExampleController', ['$scope', function($scope) {
      $scope.submit = function() {
        return false;
      };      
  }]);
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers