【发布时间】:2019-09-11 21:35:01
【问题描述】:
我有带有 bootstrap 4 的 angular 6 项目和用于模态对话框的 ng-bootstrap。现在,由于这需要集成到另一个角度为 3.3.7 的项目中,所以我被要求降级引导版本。以下是我执行的步骤:
npm install bootstrap@3.3.7 --save
但之后我的 ng-bootstrap 模式对话框停止工作,所以当我尝试使用以下命令重新安装时:
npm install --save @ng-bootstrap/ng-bootstrap
然后从 ng_modules/bootstrap 文件夹消失,然后项目什么也不显示。 我错过了什么?
【问题讨论】:
-
Bootstrap 3 和 4 之间有很多重大变化。我不希望输出 Bootstrap 4 标记的库与 Bootstrap 3 兼容
标签: angular bootstrap-4