allow only negative numbers in angular 5 textbox
<mat-form-field class="col--sm-4 col--md-4 col--lg-6">
<input type="number" matInput placeholder="Lower Band Rng" formControlName="lowerBoundNumber" required>
<mat-error >Please enter Lower Band Rng</mat-error>
<mat-hint>Enter Lower Band Rng here</mat-hint>
</mat-form-field>
allow only negative numbers in angular 5 textbox
Please enter Lower Band Rng
Enter Lower Band Rng here
If you want to create a mor generic solution, you could use a directive like this: