feat(dialog): add result to MdDialogClose directive by nallwhy · Pull Request #4332 · angular/components

@googlebot added the cla: yes

PR author has agreed to Google's Contributor License Agreement

label

Apr 30, 2017

@nallwhy nallwhy changed the title feat(dialog): add result to MdDialogClose directive feat(dialog): add result to MdDialogClose directive

May 1, 2017

jelbourn

jelbourn

jelbourn

devversion

@nallwhy

MdDialog has MdDialogClose to make it easier to structure a dialog.
But as MdDialogClose doesn't return any value, it's imposibble to use MdDialogClose if you want to get any return value when MdDialog is close.
So `@Input('md-dialog-close')result` is added to MdDialogClose to solve it.

no breaking changes