我正在使用ng-bootstrap作为模态。我想知道自定义模态窗口的html的最佳方法是什么。
默认情况下,模态html看起来像
<div role="document" class="modal-dialog">
<div class="modal-content">
//template or component
</div>
</div>
每个模态中我都需要几个元素。我想将这些元素添加到ng-bootstrap生成的html中,这样我就不必一直将它们写在模板中。
是否有很好的简单方法来做到这一点?
您可以通过windowClass添加自定义类:'myModal'