I'm making project in bootstrap (UI) and angular 2. I'm new to both things My friend suggests me to use ng2 bootstrap I am so much confused between ngx bootstrap and ng2 bootstrap. Always when I search ng 2 bootstrap it take me to the ngx bootstrap. What is the difference between the two?
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+.
The Ngx-Bootstrap is a very popular library to use bootstrap components in Angular Based projects. It contains almost all core components of Bootstrap. ngx-bootstrap components are by design modular,extensible and adaptable.
NGX Bootstrap and its usage The Ngx-Bootstrap is one of the very popular libraries that is required to use bootstrap components in Angular Based projects. It consists of almost all core components of Bootstrap. Ngx bootstrap is an open-source tool. It is an independent project, and the development is still ongoing.
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.
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With