我们如何仅将mat-datepicker用作年份选择器Angular 6

时间:2019-02-15 13:48:50

标签: jquery angular typescript datepicker angular6

我只想将mat-datepicker用作年份选择器。反正有这样的办法吗?

<input name="RegDate" #RegDate="ngModel" [matDatepicker]="picker" [(ngModel)]="objCompany.RegDate"
                      class="form-control datepicker" required />
                      <mat-datepicker-toggle class="datepicker-toggler" [for]="picker"></mat-datepicker-toggle>
                      <mat-datepicker #picker></mat-datepicker>

0 个答案:

没有答案