I am trying to create a subclass of FormControl with some additional properties which can then be used inside my custom form controls to change the behaviour.
I tried to inherit from FormControl(say StandardFormControl) as below and used to create a form group but when I access the formcontrol inside a directive/anywhere else, I do not get the properties of the subclassed form control.
class StandardFormControl extends FormControl{
customProperty: string
}
The form group was created as below
new FormGroup({
firstName: new StandardFormControl('',[])
});
Anyone has any ideas?