我正在使用材质设计日期选择器,如下所示:
<mat-form-field>
<input matInput [matDatepicker]="picker" [(ngModel)]="eventDate" placeholder="Choose a date">
<mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle>
<mat-datepicker #picker></mat-datepicker>
</mat-form-field>
上面的代码运行正常但是,是否可以一直打开datepicker弹出窗口?
任何人都可以建议我怎么做?
答案 0 :(得分:2)
<mat-datepicker #picker opened="true"></mat-datepicker>
mat-datepicker has an input opened, see angular material 2 documentation
答案 1 :(得分:0)
Route::get("/youtube","YoutubeController@index");