"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/material-examples/datepicker-views-selection/datepicker-views-selection-example.ts" between
material2-7.3.3.tar.gz and material2-7.3.4.tar.gz

About: material2 offers Material Design components for Angular.

datepicker-views-selection-example.ts  (material2-7.3.3):datepicker-views-selection-example.ts  (material2-7.3.4)
skipping to change at line 54 skipping to change at line 54
}) })
export class DatepickerViewsSelectionExample { export class DatepickerViewsSelectionExample {
date = new FormControl(moment()); date = new FormControl(moment());
chosenYearHandler(normalizedYear: Moment) { chosenYearHandler(normalizedYear: Moment) {
const ctrlValue = this.date.value; const ctrlValue = this.date.value;
ctrlValue.year(normalizedYear.year()); ctrlValue.year(normalizedYear.year());
this.date.setValue(ctrlValue); this.date.setValue(ctrlValue);
} }
chosenMonthHandler(normlizedMonth: Moment, datepicker: MatDatepicker<Moment>) { chosenMonthHandler(normalizedMonth: Moment, datepicker: MatDatepicker<Moment>) {
const ctrlValue = this.date.value; const ctrlValue = this.date.value;
ctrlValue.month(normlizedMonth.month()); ctrlValue.month(normalizedMonth.month());
this.date.setValue(ctrlValue); this.date.setValue(ctrlValue);
datepicker.close(); datepicker.close();
} }
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)