Skip to content

How to open dropdown menu with Angular ? #39048

Answered by gerardnico
Nico7522 asked this question in General
Discussion options

You must be logged in to vote

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 of popper.min.js and bootstrap.min.js. You should have one or the other but not the two.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Nico7522
Comment options

Answer selected by Nico7522
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants