Be careful that you aren't too restrictive though, which might lead to false negatives and a poor user experience.For example, you'd be surprised at what kinds of email addresses are considered valid according to standards.
It doesn't seem to be getting a lot of attention and in this post I want to explain you how to implement the following: If we want to check something using a Promise (such as fetching data from the server) we can use an asynchronous validator.
when validating requiered feilds have been filled in on a form i change the background color to yellow using the code below on the submit button click event.
this works as it should, what isnt working correctly is the else part of the code when the form has been resubmitted and the fields are now correctly filled in.
-------------------------------- your soloution worked very well, it was my implementation that was at fault, i had the code within my validation code, that wasnt executed when there was no errors, hence the boxes remaining yellow, unless i introduced another problem.
Angular 2 has reached beta, it’s time to explore the framework.