Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script>
  <script src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
  </head>
<body ng-app="app">
  <div ng-controller="firstCtrl">
  <form name="form">
            Name:
            <input type="text" 
                   name="uName"
            placeholder="username"
            ng-minlength=3
            ng-maxlength=20
            ensure-unique="username" required ng-model="username"/><br />
    <div ng-show="form.uName.$dirty && form.uName.$invalid">
                <small ng-show="form.uName.$error.required">please put your username in</small>
                <small ng-show="form.uName.$error.minlength">it has to be at least 3 characters </small>
                <small ng-show="form.uName.$error.maxlength">it can't be longer than 20 characters</small>
                <small ng-show="form.uName.$error.unique">this one has already been taken</small>
            </div>
        </form>
  </div>
</body>
</html>
Output 300px

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

Dismiss x
public
Bin info
zieemerpro
0viewers