Creating custom form controls using Control Value Accessor in Angular
How to create custom form controls in Angular using ControlValueAccessor? We can create custom form components and connect them to either template-driven forms or reactive forms.
So when I say custom form controls, I am talking about those elements t...
sreyaj.dev9 min read
Joe Smith
Hi. Great article. i was just wondering for the following " this.onTouched(); // <-- mark as touched this.selected = code; this.onChanged(code); // <-- call function to let know of a change "
why does calling this.onTouched(); mark it as touched. is it not an empty function?