I have three buttons: Edit Data, Save and Cancel.
At the outset Cancel and Save and disabled, edit data is enabled.
Currently:
I have a couple of boolean variables in the typescript file;
Using two-way data binding, I can control when the disabled properties are re-enabled.
Is there a way of incorporating form.pristine and or form.valid with the two way data binding so that only when the corresponding value is set and the form has been modified that the Save and
cancel buttons become pressable?
Thanks
mrplatypus