Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding jQuery for Bootstrap in Angular2 [duplicate]

Where should one correctly include jQuery for Bootstrap 4 within Angular2, taking into consideration architecture best-practices and potentially performance when loading pages?

like image 437
Sammy Avatar asked Mar 26 '17 10:03

Sammy


1 Answers

If you want to take into account "best-practices and potentially performance when loading pages" please, just don't use jQuery. If you are looking for usage of Bootstrap 4 components in Angular 2+ use a dedicated library that provide those without any need for jQuery, Bootstrap's JS etc.: https://ng-bootstrap.github.io/

like image 165
pkozlowski.opensource Avatar answered Nov 20 '22 00:11

pkozlowski.opensource