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. |
Beta Was this translation helpful? Give feedback.
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, |
Beta Was this translation helpful? Give feedback.
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.js
is the bundle ofpopper.min.js
andbootstrap.min.js
. You should have one or the other but not the two.