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...

Markdown supported · ⌘↵ to post
Really helpful tutorial Adithya. I gotta write one of these at work today and your tut very easy to understand!
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?