Topic: ngfor does not work in navbar
Juan Carlos Estevez asked 6 years ago
HelloI am trying to load menus automatically with a variable array but it does not load, I am using mdboostrap free.
Not work:
<ul class="navbar-nav"><li *ngFor="let menu of dataMenu" class="nav-item"><br> <a class="nav-link waves-light" mdbWavesEffect>{{menu.opcion}}</a><br> </li> </ul>
it Works:
<ul><li *ngFor="let menu of dataMenu"><a href="#">{{menu.opcion}}</a></li></ul>
waiting for your helpregardsJuan C.
Arkadiusz Idzikowski staff answered 6 years ago
p4k1tz answered 3 years ago
I feel like this question was pretty clear. When using the navbar-nav class, the menu does not show. Pretty similar to an issue I am currently having 3 years later.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: 7.4.1
- Device: laptop
- Browser: all browser
- OS: windows 10
- Provided sample code: No
- Provided link: No