You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
fix(dialog): improve support for template and templateUrl options
Using $mdDialog to show html content without a mdDialog parent node will throw an error:
```js
$mdDialog.show({
targetEvent: ev,
controller : DialogCtrl,
parent : angular.element(document.body),
template : '<div ng-click="answer(\'string\')">click here</div>'
}
```
If a mdDialog template does not contain a wrapper `md-dialog` node, then auto-wrap.
If a `$mdUtil.extractElementByName` does not find the target element, warn the user.
Fixes#3191. Fixes#4206.
0 commit comments