Topic: Navbar stops working after upgrade to 5.1.0
shilu911 pro asked 6 years ago
Hi there,
I just upgraded from 5.0.5 to 5.1.0, and the navbar just stops working, doesn't show any content inside of <mdb-navbar></mdb-navbar>.
After digging into the source code, I found in the navbar.component.html, it is missing <ng-content></ng-content> which exists on the 2nd line of version 5.0.5. So, I added this line and it starts working again.
Furthermore, there are two lines of<ng-content select="logo" ></ng-content>, shall I delete one?
Andrew pro answered 6 years ago
I have the same problem. Definitely something wrong with the navbar.component.html having two logo content areas. It also seems like the examples for the standard navbar are inconsistent with the navbar section in the double-nav examples.
Damian Gemza staff commented 6 years ago
Dear Andrew, In next release, we'll fix double nav code, so it won't be broken no longer.FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Answered
Specification of the issue
- ForumUser: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No
Tags
Damian Gemza staff commented 6 years ago
Hi shilu911, please, do not delete any line from navbar.component.html. It's strange cause it should works fine. We have tested it.. It's good that you found solution by self. Best Regards, Damian