2016-04-24 61 views

回答

4

这是因为你还没有设置ng-model到您的输入。如果没有设定模型则角度无法验证你的领域

<input type="email" name="testmail" ng-model="testmail> 

这是你更新plunker

More on ng-model以及它是如何重要的是AngularJs

+0

非常感谢!它现在有效 –

+0

添加到它{{testForm.testmail。$ valid && testForm.testmail。$ dirty}} –