material
material copied to clipboard
Why $mdDialog.content() don't support html code?
If I only want to show a image using $mdDialog, I think the best way to do this is pass a piece of html code into $mdDialog.content(), Instead of using a separate template files
Hi,
I didn't try, but can't you use this to provide an inline template ?
$mdDialog.show({
template: '<img src="" alt="">'
})
See $mdDialog Docs
$mdDialog.show().template = '<img src="" alt="">'$mdDialog.show({template : '<img src="" alt="">'})$mdDialog.show().templateUrl = '/templates/myAlert.html'>'$mdDialog.show({templateUrl : '/templates/myAlert.html'})
@ThomasBurleson Thanks!