ng-bootstrap:如何覆盖模式窗口html

问题描述 投票:1回答:1

我正在使用ng-bootstrap作为模态。我想知道自定义模态窗口的html的最佳方法是什么。

默认情况下,模态html看起来像

<div role="document" class="modal-dialog">
  <div class="modal-content">
    //template or component
  </div>
</div>

每个模态中我都需要几个元素。我想将这些元素添加到ng-bootstrap生成的html中,这样我就不必一直将它们写在模板中。

是否有很好的简单方法来做到这一点?

angular bootstrap-modal ng-bootstrap
1个回答
0
投票

您可以通过windowClass添加自定义类:'myModal'

© www.soinside.com 2019 - 2024. All rights reserved.