Issue
Is this possible in angular ?
<button type="submit" [disabled]="!validate && !SAForm.valid">Add</button>
I expect that if both of the conditions are true they will enable the button.
I've already tried the above code but it's not working as expected.
Solution
It sounds like you need an OR instead:
<button type="submit" [disabled]="!validate || !SAForm.valid">Add</button>
This will disable the button if not validate or if not SAForm.valid.
Answered By - DeborahK
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.