I don't like all the HTML markup I have to write every time I want to add a 
new control that has been made to look pretty with Bootstrap, so I have 
decided to create a custom component for each input type I use in my app. 
Here is my first shot at it.

https://plnkr.co/edit/WokNkY9sB0UV1d7ugxND

I don't like the "isValidating" code in CustomInputComponent, but it seems 
that if I don't call control.updateValueAndValidity() then the errors are 
one step behind (I expect my validator runs first). Is there some kind of 
lifetime hook I can use that will run after all of the validators have 
executed?

I also don't like the fact that I have to declare providers in every 
concrete class, is there a way to do this only once in the base class 
CustomInputComponent instead?

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to