Working on a custom input component with ControlValueAccessor and cannot find guidance on the best way to access the input value. Since passing $event is a dubious practice is there a way to trigger two or more methods when an event is fired?
<input type='text' (input)="onChange($event.target.value); watchCity($event.target.value)" [disabled]="disabled" (onEnter)="onEnter($event)" (blur)="onTouched()" />
Maybe there is a better way to get the value from inside the ControlValueAccessor component?
$eventis not dubious as a rule. It's dubious in their example because in the event handling method, they accessevent.targetand that method thus knows too much intricacies of the template.