I am trying to create a form that contains selects and inputs. Unfortunately when i added this form nothing happens when when input is filled, no action ... Below is my code:
<form name="myForm" novalidate>
<p>Username:
<br>
<input type="text" name="user" ng-model="user" required>
<span style="color:red" ng-show="myForm.user.$dirty && myForm.user.$invalid">
<span ng-show="myForm.user.$error.required">Username is required.</span>
</span>
</p>
<p>
<input type="submit" ng-disabled="(myForm.user.$dirty && myForm.user.$invalid) || (myForm.email.$dirty && myForm.email.$invalid)">
</p>
{{(myForm)}}
{{myForm}}
{{myForm.user.$error}}
{{myForm.user.$dirty}}
</form>
When I realized that nothing happened, I decided to display myform properties as plain text, {{(myForm)}} {{myForm}} {{myForm.user.$error}} {{myForm.user.$dirty}} but nothing displayed !
So, any suggestions to make it working?