how to limit the range of numbers in angular2 for an input text?
<p>I have an input text field. <code>&lt;input type="text" [ngModel]="textvalue | currencyinrhello" (ngModelChange)="onTextChange($event)" (keypress)="restrictNumeric($event)" /&gt;
</code>
i want to restrict the value of the input from 15,000 to 5,00,000. I don't want the user to input a number above it.</p>