Skip to content

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

@fabulias

Description

@fabulias

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions