Skip to content

datepicker: add exportAs in directives and components #4603

@ocarreterom

Description

@ocarreterom

Bug, feature request, or proposal:

Proposal.

What is the expected behavior?

Nice to use:

<md-input-container>
  <input mdInput [mdDatepicker]="startDatepicker" #startDatepickerInput="mdDatepickerInput">
</md-input-container>
<md-datepicker #startDatepicker></md-datepicker>
<md-input-container>
  <input mdInput [mdDatepicker]="endDatepicker" [min]="startDatepickerInput.value">
</md-input-container>
<md-datepicker #endDatepicker></md-datepicker>

What is the current behavior?

Currently the use of NgModel or FormControl is required.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

angular/material: 2.0.0-beta.5-05dbb90

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions