How to hide/delete underline input Angular Material?

前端 未结 10 1114
伪装坚强ぢ
伪装坚强ぢ 2020-12-14 06:24

I have input element in Angular Material:




         


        
10条回答
  •  Happy的楠姐
    2020-12-14 07:07

    For me it worked without ::ng-deep. Using Angular 6.1.10 as follows:

    {{ food.label}}

    .no-line .mat-form-field-underline {
      display: none;
    }
    

提交回复
热议问题