@@ -424,15 +424,18 @@ function MdDialogProvider($$interimElementProvider) {
424
424
425
425
return $$interimElementProvider ( '$mdDialog' )
426
426
. setDefaults ( {
427
- methods : [ 'disableParentScroll' , 'hasBackdrop' , 'clickOutsideToClose' , 'escapeToClose' , 'targetEvent' , 'closeTo' , 'openFrom' , 'parent' , 'fullscreen' ] ,
427
+ methods : [ 'disableParentScroll' , 'hasBackdrop' , 'clickOutsideToClose' , 'escapeToClose' ,
428
+ 'targetEvent' , 'closeTo' , 'openFrom' , 'parent' , 'fullscreen' ] ,
428
429
options : dialogDefaultOptions
429
430
} )
430
431
. addPreset ( 'alert' , {
431
- methods : [ 'title' , 'htmlContent' , 'textContent' , 'ariaLabel' , 'ok' , 'theme' , 'css' ] ,
432
+ methods : [ 'title' , 'htmlContent' , 'textContent' , 'content' , 'ariaLabel' , 'ok' , 'theme' ,
433
+ 'css' ] ,
432
434
options : advancedDialogOptions
433
435
} )
434
436
. addPreset ( 'confirm' , {
435
- methods : [ 'title' , 'htmlContent' , 'textContent' , 'ariaLabel' , 'ok' , 'cancel' , 'theme' , 'css' ] ,
437
+ methods : [ 'title' , 'htmlContent' , 'textContent' , 'content' , 'ariaLabel' , 'ok' , 'cancel' ,
438
+ 'theme' , 'css' ] ,
436
439
options : advancedDialogOptions
437
440
} ) ;
438
441
@@ -510,7 +513,8 @@ function MdDialogProvider($$interimElementProvider) {
510
513
function beforeShow ( scope , element , options , controller ) {
511
514
if ( controller ) {
512
515
controller . mdHtmlContent = controller . htmlContent || options . htmlContent || '' ;
513
- controller . mdTextContent = controller . textContent || options . textContent || '' ;
516
+ controller . mdTextContent = controller . textContent || options . textContent ||
517
+ controller . content || options . content || '' ;
514
518
515
519
if ( controller . mdHtmlContent && ! $injector . has ( '$sanitize' ) ) {
516
520
throw Error ( 'The ngSanitize module must be loaded in order to use htmlContent.' ) ;
0 commit comments