I know that in order to integrate bootstrap with angular we have to use some library such as ngx-bootstrap
or ng-bootstrap/ng-bootstrap
(which are just rewrites of Bootstrap with no dependency on JQuery) and I've read in lots of resources that this is because of Bootstrap's dependency on JQuery.
I can't find any more elaboration on this. Could anyone please provide some explanation about what is the problem of having dependency on JQuery for a library used in angular?
Here are some quotes stating that native Bootstrap should not be used :
this is from here:
...But, we cannot integrate native Bootstrap with angular, due to Bootstrap’s jQuery dependency ...
and this one, which indirectly says that JQuery is the problem forcing us to use some rewrite of bootstrap:
ng-bootstrap and ngx-bootstrap are two different projects by two different project teams that are trying to accomplish more or less the same thing - allowing you to use Bootstrap in Angular (2+) without the use of jQuery.
UPDATE:
As @jqueryHtmlCss told, The last version of bootstrap does not depend on JQuery. Despite that fact, the ng-bootstrap/ng-bootstrap
package is still being maintained and developed to support the 5th version of Bootstrap(see here). Does it make sense? Aren't we using those libraries because Bootstrap depends on JQuery?
I think the answer to this question would be an in deep discussion about JavaScript internals and how these frameworks work. I'm looking for that kind of stuff as answer.