question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't bind to 'mdDatepickerToggle' since it isn't a known property of 'button'.

See original GitHub issue

Bug, 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:closed
  • Created 6 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

9reactions
ashishsharma123commented, Aug 22, 2017

use can use md-datepicker-toggle like this: <md-datepicker-toggle mdSuffix [for]="picker"></md-datepicker-toggle>

Hope this will help you 😃

8reactions
elwinarenscommented, Sep 28, 2017

Returning to an Angular + Material project after a month 😂 🔫

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found