I'm currently struggling with some very specific (detailed and dynamic) form, that uses a lot of custom made components with semantic-ui as CSS library.
I know that I can use ngClass
to style inside my component. But, since it's a validation, i would like to add error
class to the parent DOM element. I tried developing an extension of NgClass
without any luck. My idea was to intercept ElementRef
and give NgClass
the one from the parent.
Maybe I'm doing this the wrong way, that's why i'm asking. What the best way to accomplish this task? Is it even possible?
I found this but it require to add one event handle for each component! It doesn't feel right.