What is the difference between “ng-bootstrap” and “ngx-bootstrap”?

后端 未结 9 2396
梦如初夏
梦如初夏 2020-12-02 05:39

What is the difference between \"ng-bootstrap\" and \"ngx-bootstrap\"? Are they related to each other? Or are they simply concurrent implementations?

Has someone wor

相关标签:
9条回答
  • 2020-12-02 06:28

    One difference is in the format used by their date picker. ng-bootstrap uses an object, but ngx-bootstrap will take a string which is way easier to use.

    0 讨论(0)
  • 2020-12-02 06:29

    ng-bootstrap and ngx-bootstrap are two different projects by two different project teams that are trying to accomplish more or less the same thing - allowing you to use Bootstrap in Angular (2+) without the use of jQuery.

    They are both rebuilding the Bootstrap components using only Angular (no jQuery).The main differences are around which version of Bootstrap they support.

    • ngx-bootstrap supports Bootstrap 3 and 4.
    • ng-bootstrap supports Bootstrap 4 and requires Angular 5+.

    This means that if you need to use Bootstrap version 3, then ngx-bootstrap is your only real option of the two. If you can use Bootstrap 4, then you can pick between the two projects.

    The other (potentially significant) difference is the teams behind the projects. The key point to note in this regard is that the team behind ng-bootstrap was also responsible for angular-ui-bootstrap - the AngularJS (i.e. 1.x) version of the Bootstrap library.

    0 讨论(0)
  • 2020-12-02 06:33

    Agree with @Dilshan. I also made the decision to choose ngx-bootstrap for our new product. After some research, I found ngx is more mature and stable for production. ng-bootstrap is under development.

    A good resource for reference, CoreUI.io has a full functional CoreUI + Angular 5.x + ngx-bootstrap sample project. I actually learned ngx from this project. You can browse its live preview or download the project package.

    0 讨论(0)
提交回复
热议问题