How to open dropdown menu with Angular ? #39048
|
Hello, I want to add a simple dropdown menu to my app but when i click and want to show the menu nothing appear. Here my angular.json : ` "styles": [ I think I just missing something but I can get why. Thanks a lot guys. |
Replies: 1 comment 1 reply
|
Dropdowns are managed by popper. The easiest way is to add data attributes and let the Bootstrap script do it. See: Note: if I'm right, |
Dropdowns are managed by popper.
You therefore need to register them via javascript.
The easiest way is to add data attributes and let the Bootstrap script do it. See:
https://getbootstrap.com/docs/5.3/components/dropdowns/#via-data-attributes
Note: if I'm right,
bootstrap.bundle.min.jsis the bundle ofpopper.min.jsandbootstrap.min.js. You should have one or the other but not the two.