I'd like to make certain input-fields only available for integer or decimal-values. So I got the following code:
<input type="text" pattern="[0-9]*" [(ngModel)]="myValue" pInputText class="medium-field"
(change)="calculate()"/>
So this field is marked if the pattern does not match the input. Still I would like to disable the submit-button while the pattern is not matched. Can I somehow access that value as a boolean or is there another way?
buttonDisabledflag in your calculate function that controls whether your button is disabled or not.