I have a reference to a textarea
<*wrapper-component (submit)="tx1.value ? submit(tx1.value) : tx1.setClass('required')??">
<textarea #tx1> <textarea>
</*wrapper-component>
which I pass the value of into my submit function, is it possible to set classes for my tx1
element from the HTML itself instead of creating a ViewChild
property and accessing elRef.nativeElement.setClass
with typeScript?