I have a signup form built with AngularJS using frontend and backend (with Express.js) input verification. Whenever a user enters an invalid email address, like qwidjq&/%, I'd like to show an error message and send the form back to the user. The email input field should contain the invalid email as the value.
The problem is that I cannot init input(type="email")
fields with invalid email values. Only input(type="text")
works. Here is an example.
Any ideas how to work around this restriction? I don't want to use input(type="text")
and a custom directive. I'd like to keep input(type="email")
as it changes keyboard layout on mobile devices.
Thanks in advance!