I am a beginner exploring the world of Typescript and Angular. I am curious about how to initialize Bootstrap elements in an Angular-friendly manner without using the ngx-Bootstrap wrapper.
For instance, if I wish to initiate a Bootstrap carousel. As per the guidelines, it appears that I should write something like:
$('.carousel').carousel()
I am interested in knowing how we can achieve this in an Angular way, perhaps by utilizing ElementRef or another approach?
I experimented with @types/jquery, and surprisingly the afore mentioned code did work. However, Angular advises against direct DOM manipulation, so I am uncertain about the recommended approach.
I have also explored the ngx-Bootstrap library but have not found any initialization code, leaving me puzzled about its functioning.
Furthermore, within ngx-materializecss, @types/jquery and Render (which is now deprecated) are used to encapsulate the elements.
I would greatly appreciate any assistance or resources on this subject.
Thank you!!!