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

后端 未结 9 2407
梦如初夏
梦如初夏 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

    I've used both ngx-bootstrap(by Valor) and ng-bootstrap(by ng-boostrap). Here are my two cents of the unique features you get from them:

    ngx-bootstrap:

    1. Builtin animation support on almost everything (modals, accordion, collpase, dropdown, datepicker...)
    2. Better Modal support (nested modals, modal as a service, modal as a template)
    3. Sortable Component (with Drag&Drop Feature)

    ng-bootstrap:

    1. Nav Feature (Tabset has been made deprecated)
    2. Builtin Toast component
    3. Package size is almost half times as ngx-bootstrap (Minified + Gzipped)

    You can also compare between their npm download counts with npmtrends.

    [Note: My answer is based current latest version i.e ngx-bootstrap v5.5.0 and ng-boostrap v6.0.0]

提交回复
热议问题