2017-12-15 9 views
0

각도 재질에 matInput의 입력을 오른쪽에 맞추려면 어떻게해야합니까?각도 재질 matInput 내용이 오른쪽에 정렬

내 현재 코드 :

<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> 

원하는 출력 : 그냥 작동한다 표준 text-align CSS를하게 proprty를 사용

enter image description here

답변

0

.

<input matInput class="right"> 

.right { text-align: right }