I have used template validation form in angular but haven't used required in any of the fields, as none of the field is mandatory. Now I need to disable the button, if all the fields are empty and enable if any one of the field is filled, and here I have email field, so if the user has entered only email field and if it is not valid then, it should throw error. If he has entered any field other than email field then the button shall be enabled.
I tried with [disabled] attribute, by assigning:
[disabled]="advanceSearch.groupAgent =="
and also tried by taking ref input and disabling with that value as well, but nothing worked for me.
Here the problem is even though I used form validation, I haven't used required to any of the field.
Can anyone help me to solve this.
Here is the demo