0
<input formControlName="someNumber" mask="0000.00" />

Using ngx-mask, this would force me to enter 1234.56 - but let's say I only want to accept 99 as the last two digits, how would I need to define the mask? Can't make it work with custom patterns...

4

1 回答 1

0

我认为它应该是一个带后缀的掩码;

<input formControlName="someNumber" suffix=".99" mask="0000"/>
于 2019-12-03T12:42:28.557 回答