This is what I tried. What shows is 0.00 instead of the placeholder, my placeholder is a text like "enter exchange rate" Any solution for that?
<span >
<p-inputNumber [max]="9" mode="decimal" name="exchangeRate" formControlName="exchangeRate"
[minFractionDigits]="2" [maxFractionDigits]="2" placeholder="exchangeRate"></p-inputNumber>
</span>
CodePudding user response:
If you are initializing your formControl exchangeRate
with null
instead of 0
, you can show your placeholder.