@@ -49,7 +49,7 @@ The month or year that the calendar opens to is determined by first checking if
49
49
currently selected, if so it will open to the month or year containing that date. Otherwise it will
50
50
open to the month or year containing today's date. This behavior can be overridden by using the
51
51
` startAt ` property of ` md-datepicker ` . In this case the calendar will open to the month or year
52
- containing the ` startAt ` date.
52
+ containing the ` startAt ` date.
53
53
54
54
``` ts
55
55
startDate = new Date (1990 , 0 , 1 );
@@ -66,7 +66,7 @@ There are three properties that add date validation to the datepicker input. The
66
66
disable all dates on the calendar popup before or after the respective values and prevent the user
67
67
from advancing the calendar past the ` month ` or ` year ` (depending on current view) containing the
68
68
` min ` or ` max ` date.
69
-
69
+
70
70
The second way to add date validation is using the ` mdDatepickerFilter ` property of the datepicker
71
71
input. This property accepts a function of ` <D> => boolean ` (where ` <D> ` is the date type used by
72
72
the datepicker, see section on
@@ -78,7 +78,7 @@ dates before or after a certain point, will not prevent the user from advancing
78
78
that point.
79
79
80
80
``` ts
81
- myFilter = (d : Date ) => d .getFullYear () > 2005
81
+ myFilter = (d : Date ) => d .getFullYear () > 2005
82
82
minDate = new Date (2000 , 0 , 1 );
83
83
maxDate = new Date (2020 , 11 , 31 );
84
84
```
@@ -111,7 +111,7 @@ The calendar popup can be programmatically controlled using the `open` and `clos
111
111
@Component ({... })
112
112
export class MyComponent implements AfterViewInit {
113
113
@ViewChild (MdDatepicker ) dp: MdDatepicker <Date >;
114
-
114
+
115
115
ngAfterViewInit() {
116
116
dp .open ();
117
117
}
@@ -126,7 +126,7 @@ The easiest way to ensure this is just to import one of the pre-made modules (cu
126
126
` MdNativeDateModule ` is the only implementation that ships with material, but there are plans to add
127
127
a module for Moment.js support):
128
128
* ` MdNativeDateModule ` - support for native JavaScript Date object
129
-
129
+
130
130
These modules include providers for ` DateAdapter ` and ` MD_DATE_FORMATS `
131
131
132
132
``` ts
0 commit comments