These are chat archives for angular/material

15th
Mar 2018
labyed
@labyed
Mar 15 2018 10:21
hey guys, is there a way to select only months and years in datepicker, ty
Nate Gardner
@natejgardner
Mar 15 2018 16:06
I'm having a bit of trouble with the datepicker- getting Can't bind to 'matDatePicker' since it isn't a known property of 'input'.

Template

<mat-form-field>
          <input [matDatePicker]="myDatePicker">
          <mat-datepicker #myDatePicker></mat-datepicker>
</mat-form-field>

It's imported in my app module:

import { ..., MatDatepickerModule, MatNativeDateModule,...} from '@angular/material`;
...
@NgModule({...,imports: [ ...,MatDatepickerModule, MatNativeDateModule,...],...})
Any ideas on what to try?