Answer the question
In order to leave comments, you need to log in
How to initialize input type="email" ?
Actually, the problem of initializing input type="email" is doing everything in the same way with input type="text" but the field is not initialized anyway, what could be the problem?
<input class="d-form__input-text"
name="email"
type="email"
ng-model="email"
ng-init="email='[email protected]'"
value="[email protected]"
ng-required="true"
ng-pattern="{{EMAIL_REGEXP}}">
Answer the question
In order to leave comments, you need to log in
Update:
Initialized only with valid "[email protected]" value, if I try to initialize "email.com" the data is not displayed at all in the input. And I just need to display a form with invalid data that the user posted the form earlier.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question