@@ -53,15 +53,16 @@ year containing the `startAt` date.
53
53
54
54
#### Watching the views for changes on selected years and months
55
55
56
- When a year or a month is selected in ` multi-year ` and ` year ` views respecively , the ` yearSelected `
56
+ When a year or a month is selected in ` multi-year ` and ` year ` views respectively , the ` yearSelected `
57
57
and ` monthSelected ` outputs emit a normalized date representing the chosen year or month. By
58
- "normalized" we mean that the dates representing a year will have their month set to January and
58
+ "normalized" we mean that the dates representing years will have their month set to January and
59
59
their day set to the 1st. Dates representing months will have their day set to the 1st of the
60
60
month. For example, if ` <mat-datepicker> ` is configured to work with javascript native Date
61
61
objects, the ` yearSelected ` will emit ` new Date(2017, 0, 1) ` if the user selects 2017 in
62
- ` multi-year ` view. Similarly, ` monthSelected ` will emit ` new Date(2017, 1, 0 ) ` if the user
62
+ ` multi-year ` view. Similarly, ` monthSelected ` will emit ` new Date(2017, 1, 1 ) ` if the user
63
63
selects ** February** in ` year ` view and the current date value of the connected ` <input> ` was
64
- something like ` new Date(2017, MM, dd) ` (the month and day are irrelevant in this case).
64
+ set to something like ` new Date(2017, MM, dd) ` when the calendar was opened (the month and day are
65
+ irrelevant in this case).
65
66
66
67
Notice that the emitted value does not affect the current value in the connected ` <input> ` , which
67
68
is only bound to the selection made in the ` month ` view. So if the end user closes the calendar
0 commit comments