[Vuejs]-How Can I Capture Property Updates on Vue Material's md-dialog?

0👍

Obviously a dialog cannot be used by only one boolean prop. That way you can’t distinguish when a dialog was cancelled and when it was confirmed. In more complex cases you may have several confirm buttons with different actions.

I recommend to use a method like open to open a dialog by using $refs in a parent component and close a dialog inside itself with emitting confirmation events that can be catched in a parent component.

Leave a comment