How do we align the input of matInput in Angular Material to the right?
My current code:
<mat-form-field>
  <input matInput type="number" id="amount" placeholder="Amount"
    [ngModel]="entry.amount | number :'1.2-2'"
    (ngModelChange)='entry.amount=$event' />
</mat-form-field>
Desired output :

Using the standard text-align CSS property should just work.
<input matInput class="right">
.right { text-align: right }
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With