Skip to content

Commit 0a619e9

Browse files
julianobrasiljelbourn
authored andcommitted
docs(datepicker): correct typos (#10339)
1 parent c205749 commit 0a619e9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/lib/datepicker/datepicker.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,16 @@ year containing the `startAt` date.
5353

5454
#### Watching the views for changes on selected years and months
5555

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`
5757
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
5959
their day set to the 1st. Dates representing months will have their day set to the 1st of the
6060
month. For example, if `<mat-datepicker>` is configured to work with javascript native Date
6161
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
6363
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).
6566

6667
Notice that the emitted value does not affect the current value in the connected `<input>`, which
6768
is only bound to the selection made in the `month` view. So if the end user closes the calendar

0 commit comments

Comments
 (0)