I was looking for a way to make the angular material datepicker 2 change to only year and month mode but it does not have that option in the documentation
I can set the startView but when month or year is selected, change to Day mode
<md-form-field>
<input mdInput [mdDatepicker]="picker" placeholder="Choose a date">
<md-datepicker-toggle mdSuffix [for]="picker"></md-datepicker-toggle>
<md-datepicker #picker startView="year" [startAt]="startDate"></md-datepicker>
</md-form-field>
I want this: https://plnkr.co/edit/eV2Kmt?p=preview
But that plunker is in angular material 1
Any help? :)