mardi 29 décembre 2015

angularjs ng-pattern for input[email] doesn't work as expected

I want to allow ANYTHING, including invalid emails (without @, empty, etc)

http://ift.tt/1mNBTo7

I'm using:

ng-pattern="/.*?/"

But it doesn't works until you don't put an *@* (like a@b) in the input.

How can I avoid this?

Aucun commentaire:

Enregistrer un commentaire