How to extend FormControl functionality via prototype?

Discussão em 'Angular' iniciado por Anton Minchenko, Novembro 28, 2024.

  1. I want all objects of the FormControl type to have the observable (or event emitter) field (e.g. onMarkAsDirty) which will be triggered on markAsDirty method call. I tried to implement this by extending FormControl prototype, but it is too hard for me. Can you help me please and write some sketches?

    Continue reading...

Compartilhe esta Página