I am looking to add an observable or event emitter field (such as onMarkAsDirty
) to all objects of the FormControl
type. This field should be triggered when the markAsDirty
method is called. I attempted to achieve this by extending the prototype of FormControl
, but found it too challenging. Would you be able to assist me by providing some guidance or example code snippets?