I have a form like this
<form name="myForm">
<input name="myEmail" type="email"/>
{{myForm.$invalid}}
</form>
I need to bind my input field with ng-model to validate correctly the form. Why AngularJs is unable to validate this form just like this?
Even, the property myForm.myEmail.$invalid only exist if I bind the input with ng-model. Why is this so?
If validation only exist with ngModel directive, why angularjs give me the value myForm.$invalid to false? a better response would not be undefined?