A पूरक की जरूरत है, तो आप आप पर गुणों का उपयोग कर सकते हैं अपने ईमेल दर्ज करती हैं फार्म:
इस regex कि इस्तेमाल किया जाता है , मान्य है इस तरह:
एचटीएमएल:
<form name="myForm" ng-submit="submit()">
<input type="email" ng-model="email1" name="email1" />
</form>
जावास्क्रिप्ट:
//[formName].[inputFieldName].property
myForm.email1.$pristine;
// Boolean. True if the user has not yet modified the form.
myForm.email1.$dirty
// Boolean. True if the user has already modified the form.
myForm.email1.$valid
// Boolean.True if the the form passes the validation.
myForm.email1.$invalid
// Boolean. True if the the form doesn't pass the validation.
myForm.email1.$error
Reference
शायद आपका यह मतलब http://www.youtube.com/watch?v=ZhfUv0spHCY&t=29m19s है? –
आप जिस कोणीय कोण का उपयोग कर रहे हैं उसका संस्करण –