I have a domain model for bank account:
export interface BankAccount { acc1: string, acc2: string, acc3: string, acc4: string }
Parent form is template-driven, captures name and bank account number. To capture bank account number which is comprised of 4 parts digits, I managed to write a custom form control component in model-driven way. It implements ControlValueAccessor and Validator interfaces so, on a parent form, its value/valid works perfect.
Now I tried to write another bank account component in template-driven way. So far its ControlValueAccessor interface seems working but I couldn't make its Validator interface to work.
The problem is: In account 1, its value is emitted ok to parent form and validated each time I types in any number. But in account 2, the value is emitted ok but for some reason, validate() method is not being called???