Last post Feb 06, 2019 03:03 AM by Nan Yu
Feb 04, 2019 08:08 PM|comicrage|LINK
I got an Angular dialog which uses a shared controls in another component class with validation. In my angular dialog, I used the share controls ie input textfields which two are required inputs. I can trigger the two input lines to show the Is Required
validation error message. When I click on the save button, I see the form.isvalid is false. Currently, I can't get the dialog button to disable based on the shared form valid property. I tried subscribing to the shared form but no success so far. I would
like the save button to disable when whenever the shared form valid property changes to false and enabled when all the share form control validation rules passes.
UPDATE: I just resolved it.
Feb 06, 2019 03:03 AM|Nan Yu|LINK
Hi comicrage ,
It's better to share your solution which may help others who might meet same problem :)