最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

angular - Missing binding for required input 'for' of component MatTimepickerToggle - Stack Overflow

programmeradmin2浏览0评论

The error: Missing binding for required input 'for' of component MatTimepickerToggle. I imported timepicker this way: import {MatTimepickerModule} from "@angular/material/timepicker"; Can't figure out what is wrong with it. I use Angular Material 19

      <mat-form-field>
        <input matInput [matTimepicker]="picker">
        <mat-timepicker-toggle matIconSuffix [for]="picker">
          <mat-icon matTimepickerToggleIcon>keyboard_arrow_down</mat-icon>
        </mat-timepicker-toggle>
        <mat-timepicker #picker/>
      </mat-form-field>
发布评论

评论列表(0)

  1. 暂无评论