diff --git a/src/components/dialog/dialog.js b/src/components/dialog/dialog.js index 715ce47be1b..2ffe5b0c429 100644 --- a/src/components/dialog/dialog.js +++ b/src/components/dialog/dialog.js @@ -200,6 +200,25 @@ function MdDialogDirective($$rAF, $mdTheming, $mdDialog) { * })(angular); * * + * ### Multiple Dialogs + * Using the `multiple` option for the `$mdDialog` service allows developers to show multiple dialogs + * at the same time. + * + * + * // From plain options + * $mdDialog.show({ + * multiple: true + * }); + * + * // From a dialog preset + * $mdDialog.show( + * $mdDialog + * .alert() + * .multiple(true) + * ); + * + * + * * ### Pre-Rendered Dialogs * By using the `contentElement` option, it is possible to use an already existing element in the DOM. * @@ -565,7 +584,7 @@ function MdDialogProvider($$interimElementProvider) { return $$interimElementProvider('$mdDialog') .setDefaults({ methods: ['disableParentScroll', 'hasBackdrop', 'clickOutsideToClose', 'escapeToClose', - 'targetEvent', 'closeTo', 'openFrom', 'parent', 'fullscreen'], + 'targetEvent', 'closeTo', 'openFrom', 'parent', 'fullscreen', 'multiple'], options: dialogDefaultOptions }) .addPreset('alert', {