0
votes

I'm using angular material datepicker and the startView is month or year but I want the startView to be multi-year to pick a date or birth starting with the year, then month, day

I tried writing some custom code to set the view after opening but I don't think it's possible

@ViewChild('picker') picker: any;

test() {
  this.picker.open();
  console.log(this.picker);
  // this.picker.setview('multi-year') would be nice
}
1

1 Answers

2
votes
[startView]="'multi-year'"

don't know how I missed that