Marcer
Marcer

Reputation: 849

Usage of bootstrap 4 or ng-bootstrap components in angular 4

We are evaluating whether to use bootstrap 4 directly in angular 4 app by importing their styles and java scripts or to use ng-bootstrap angular components for better performance and better interoperability with angular app. Please share your views.

Upvotes: 0

Views: 418

Answers (1)

Vikas
Vikas

Reputation: 12036

ng-bootstrap contains a set of native Angular directives based on Bootstrap’s markup and CSS. As a result, it's not dependent on jQuery or Bootstrap’s JavaScript

NOTE
ng-bootstrap requires Bootstrap's 4 css to be added to your project and you need to Install it explicitly

Where bootstrap 4 is dependent on jQuery and Bootstrap’s JavaScript. I would suggest you to go for ng-bootstrap because it would hugely impact final bundle size

Upvotes: 1

Related Questions