Create directive for showing error message in form with Angular
Elec
1835

Hello, thank you for the great code! Question please: how would I set the visibility of the error message to none if it were already shown (for example, invalid email) BUT the user has started typing another email. In other words, I want to hide the error when the user is trying to correct it, and until they re-exit the field (onBlur) and only show it again if after the form control lost focus, the error is still the same. I believe I would have to modify your merge observable, but I don’t know how exactly.

Like what you read? Give Osama Sayed a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.