difference between ngx-bootstrap and ng2 bootstrap?

半城伤御伤魂 提交于 2019-12-03 01:01:27

ng2-bootstrap and ngx-bootstrap are one and the same: ng2-bootstrap was the old name, ngx-bootstrap is the new name. It's a project that's attempting to create an Angular-specific version of the Twitter Bootstrap components (i.e. no dependency on jQuery). The project is run by Valor Software. I don't have inside knowledge but my guess is that the name change happened when Angular rebranded itself as just 'Angular' (instead of Angular 2).

blackiii

Since Angular2 is released, many components are published as npm modules and most them have prefix - ng2- or angular2- like ng2-bootstrap, angular2-tags-input.

After releasing Angular4, all those node modules were faced with serious problem - "Do we have to be renamed to ng4 or angular4???"

Here is an answer written by Igor Minar from Angular Core Team.

http://angularjs.blogspot.com/2016/12/ok-let-me-explain-its-going-to-be.html

"It’s just “Angular”"

As you can see here, Angular2 and Angular4 are all Angular.

And Upgrading version is not painful anymore like 2 to 4. Just do ng upgrade or ncu -u -a.

From now angular components should be ngx-something.

ngx-bootstrap is Native Angular directives for Bootstrap 3 and Bootstrap 4. Contains all core and not only Bootstrap components powered by Angular. Basically, it's the same thing, but ng2 is the old name for the ngx.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!