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.2/angular.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body ng-app="testApp" ng-controller="testCtrl">
  <form name="awesomeForm">  
    <form-group>
      <input type="text" ng-model="x" username-validator ng-required="true">
    </form-group>
    <form-group>
      <input type="text" ng-model="c" username-validator ng-required="true">
    </form-group>
    <button ng-disabled="!awesomeForm.$valid" ng-click="onSubmit(awesomeForm.$valid)">Submit</button>
    <div ng-if="isValid">You have submitted.</div>
  </form>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers