angular - ngBootstrap 或 Bootstrap 4

标签 angular twitter-bootstrap bootstrap-4 ng-bootstrap

我有两个问题:

首先,ngBootstrap 是否支持 Angular 4?我可以在 Google 上看到人们将 Angular 4ngBootstrap 一起使用的示例,但在官方网站上,他们提到它依赖于 Angular 5和更高?

https://ng-bootstrap.github.io/#/getting-started

截图:

enter image description here

第二个问题,我很困惑在我的项目中使用 ngBootstrap 还是 Bootstrap 4,这需要大量自定义样式的控件。以前我曾使用过 Bootstrap 3,我知道如何使用 custom_variablesBootstrap 4 以相同的方式自定义它,但我不能了解 ngBootstrap 如何进行自定义。我知道的一件事是使用 ng-deep/deep/>>> 但是如何为控件提供样式一般?

最佳答案

Does ngBootstrap support Angular 4?

不再是了,上一个支持 Angular 4 的版本是 ng-bootstrap 1.0.0-beta.6

Which one to use out of ngBootstrap or Bootstrap 4?

ng-bootstrap 不能在没有 Bootstrap 4 的情况下工作,SASS 变量的自定义在 Bootstrap 4 中。

ng-bootstrap 只是替换了 Bootstrap 的 Javascript,以便在 Angular 中实现它。

关于angular - ngBootstrap 或 Bootstrap 4,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47951681/

相关文章:

Angular2无法加载资源: the server responded with a status of 404 (Not Found)

html - 在 Bootstrap 中制作固定的导航栏和侧边栏

angular - 如何在对解析器进行单元测试时模拟 ActivatedRouteSnapshot

javascript - 获取 'Access-Control-Allow-Origin' header 错误

angular - 如何修复浏览器未捕获错误 : Script error for "@ng-bootstrap/ng-bootstrap" ng-boostrap Bazel

javascript - 如何在 Bootstrap 中折叠表格行?

twitter-bootstrap - 如何使用 Bootstrap 呈现列表选择框(下拉菜单)?

javascript - 下拉菜单不起作用 jQuery 错误

css - 单选按钮不起作用。将选择但不选择背景颜色

jquery - 使用 Encore 和 Symfony 4 的 Bootstrap 日期选择器