我计划在我的项目中使用 Bootstrap 4 和 angular 4,但我对 npm install --save @ng-bootstrap/ng-bootstrap
和 npm install ngx- 感到困惑 Bootstrap ——保存
。那么谁能帮助我哪个更适合 Angular 4?
最佳答案
两者都很好,你可以抛硬币并使用其中的任何一个。
我的项目是 ng-bootstrap
,到目前为止没问题。
但是选择框架可能很棘手,您应该考虑很多因素。
首先两者都支持 Angular 4
和 Bootstrap 4
,但是 ngx-bootstrap
也支持 Bootstrap 3
。
在 github ngx-bootstrap
wins 中检查已关闭的问题时,检查这些链接 ng-bootstrap , ngx-bootstrap .
ngx-bootstrap
团队还有更多模块,例如 ng2-file-upload
more here
并检查 Stackoverflow 未回答的问题 ng-bootstrap , ngx-bootstrap .这意味着 ngx-bootstrap 问题更有可能在 SO 中得到解决。
关于twitter-bootstrap - 我在 "ngx-bootstrap"和 "@ng-bootstrap/ng-bootstrap"之间感到困惑,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47108713/