我想在JavaScript中创建BootstrapDialog
,其中包含内部有角度的html文件。
HTML:
<form id="importTaskForm" name="importTaskForm" class="form-horizontal" action="../tasks/api/task/import" enctype="multipart/form-data" method="POST">
<div class="form-group fileinput fileinput-new" data-provides="fileinput">
<label class="col-sm-3 control-label">{{msg('task.fileChosen')}}</label>
<div class="form-inline col-sm-9">
<file-upload></file-upload>
</div>
</div>
其中<file-upload>
是一个角度指令。如何将此html放入BootstrapDialog
消息字段?
var dialog = new BootstrapDialog({
title: $scope.msg('task.import'),
message: ???,
closable: false,
draggable: false
});