Can't bind to 'mdDatepickerToggle' since it isn't a known property of 'button'.
See original GitHub issueBug, feature request, or proposal:
[X] Bug
What is the expected behavior?
I am update with npm install --save angular/material2-builds angular/cdk-builds
and my DatePicker not work, my browser terminal return error with mdDatepickerToggle
Can't bind to 'mdDatepickerToggle' since it isn't a known property of 'button'
<button mdSuffix [ERROR ->][mdDatepickerToggle]="pickerInit"></button>
This is my code
<md-input-container>
<input
mdInput
[mdDatepicker]="pickerInit"
placeholder="Fecha inicial"
[min]="minDate"
[max]="maxDate"
[value]="10-2-2017"
name="init"
#init="ngModel"
ngModel
required>
<button mdSuffix [mdDatepickerToggle]="pickerInit"></button>
</md-input-container>
<md-datepicker #pickerInit></md-datepicker>
5 minutes ago I worked well, I do not know what happened
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 4.0.0 Material github:angular/material2-builds (this show in package.json) OS Mac
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
Can't bind to 'matDatepicker' since it isn't a known property of ...
I have just copied and pasted angular material code for datePicker and input, but I am getting this error for the datePicker. app.module...
Read more >Angular – Can't bind to 'matDatepicker' since it isn't a known ...
Can't bind to 'mdDatepicker' since it isn't a known property of 'input' If 'md-datepicker' is an Angular component, then verify that
Read more >Datepicker - Angular Material
Connecting a datepicker to an input. A datepicker is composed of a text input and a calendar pop-up, connected via the matDatepicker property...
Read more >Alfresco/alfresco-ng2-components - Gitter
Can't bind to 'mdDatepickerToggle ' since it isn't a known property of 'button'. (" <button [attr.data-automation-id]="'datepickertoggle-' + property.key" ...
Read more >can't bind to x since it isn't a known property - You.com
In general, the can't bind to xxx since it isn't a known native property error occurs when you have a typo in your...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
use can use md-datepicker-toggle like this:
<md-datepicker-toggle mdSuffix [for]="picker"></md-datepicker-toggle>
Hope this will help you 😃
Returning to an Angular + Material project after a month 😂 🔫