JSFiddle - React, Tailwind, and code Playground
by msfrisbie
HTML
<script src="https://code.angularjs.org/1.3.2/angular.min.js"></script>
<div ng-app="testapp">
<form name="signupForm">
<input name="username"
ng-model="user.name"/>
<button type="submit">Submit</button>
<div ng-if="signupForm.username.$touched">
You touched the username field
</div>
<div ng-if="signupForm.$submitted">
You submitted the form
</div>
</form>
</div>
JavaScript
angular.module('testapp', []);