in my Angular app I have a header with icons/pics which I want to use as dropdowns. Code snippet looks as follows:
<li class="nav-item dropdown">
<a
class="nav-link dropdown-toggle"
href="#"
id="navbarDropdownMenuLink"
role="button"
data-bs-toggle="dropdown"
aria-expanded="false"
>
<img
src="../../assets/images/icon_user_menu.png"
width="18px"
height="18px"
/>
Username
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<li><a class="dropdown-item" href="#">Action</a></li>
<li><a class="dropdown-item" href="#">Another action</a></li>
<li><a class="dropdown-item" href="#">Something else here</a></li>
</ul>
So... for a burger-menu I know (and I do) just add a typescript-method in the component.ts which changes the "open-class". But I really didn't find anything related to the dropdown stuff from bootstrap 5.
Is there a way to just apply a similar solution too? Maybe I over read sth. somewhere but I really cant find a solution for this to work.
Thanks in advance anyone!