After import MdDatepickerModule and MdNativeDateModule, in my html:
<md-datepicker-toggle> was introduced in Material 2.0.0-beta.10. See this CHANGELOG for more details.
mdDatepickerToggle is now an element < md-datepicker-toggle > with a for property that points to the MdDatepicker instance.
If you are using an earlier version of Material 2, then using <md-datepicker-toggle> will throw this error. To update to the new version, do the following:
package.json, change "@angular/material" and "@angular/cdk" version to "2.0.0-beta.10"package.json is located.npm installHere is a working demo using version 2.0.0-beta.10.