0

i have the below posted radio button, and i would like to make it disabled according to the condition posted below.my question is, one of the conditions the makes the button disabled is

iAreaOfCoverageForThresholdPasser.customizedThresholdValue

i want to test it if it is equal to empty string "" how can i do that?

html:

<button
                    id = "idSubmitButton"
                    [disabled]="!form.form.valid || (!iAreaOfCoverageForThresholdPasser.threshold3 && !iAreaOfCoverageForThresholdPasser.threshold10 && !iAreaOfCoverageForThresholdPasser.threshold15 && !iAreaOfCoverageForThresholdPasser.threshold20 && (!iAreaOfCoverageForThresholdPasser.customizedThreshold||!iAreaOfCoverageForThresholdPasser.customizedThresholdValue == )) || (!iOperationPasser.averageHeight && !iOperationPasser.areaOfCoverage)"
                    class="btn btn-outline"
                    type="button"
                    (click)="submit()"
                >
LetsamrIt
  • 3,653
  • 7
  • 39
  • 72

0 Answers0