<script src="/js/angular.js1.4.6/angular.min.js"></script>
<form ng-app="" name="myForm" ng-init="myText = 'test@w3xue.com'">
<input type="email" name="myAddress" ng-model="myText" required>
<p>Valid: {{myForm.myAddress.$valid}} (如果输入的值是合法的则为 true)。</p>
<p>Dirty: {{myForm.myAddress.$dirty}} (如果值改变则为 true)。</p>
<p>Touched: {{myForm.myAddress.$touched}} (如果通过触屏点击则为 true)。</p>