I have two directives, one directive accepts a nonnegative number and the other accepts only positive numbers based on some types.
In HTMLtemplate how can do the conditional statement?
<input *ngIf="productType ==='Amazon' ? OnlyNumber="true" : NegativeNumber" type="text" formControlName="price">
two directives below
OnlyNumber="true" directive for positive NegativeNumber: directive for negative