Skip to content

Commit

Permalink
fix(datepicker): deprecate selectedChanged output (#6025)
Browse files Browse the repository at this point in the history
* Deprecates the `selectedChanged` output on the datepicker component in favor of the `dateChange` and `dateInput` bindings on the input element.

Closes #6000
  • Loading branch information
devversion authored and andrewseguin committed Jul 27, 2017
1 parent 08037f9 commit ee73d2c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/datepicker/datepicker.ts
Expand Up @@ -151,7 +151,10 @@ export class MdDatepicker<D> implements OnDestroy {
}
private _disabled: boolean;

/** Emits new selected date when selected date changes. */
/**
* Emits new selected date when selected date changes.
* @deprecated Switch to the `dateChange` and `dateInput` binding on the input element.
*/
@Output() selectedChanged = new EventEmitter<D>();

/** Whether the calendar is open. */
Expand Down

0 comments on commit ee73d2c

Please sign in to comment.