Navbar stops working after upgrade to 5.1.0

shilu911 asked 9 months 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?


Damian Gemza commented 9 months 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,

Andrew answered 9 months 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 commented 9 months ago

Dear Andrew,
In next release, we'll fix double nav code, so it won't be broken no longer.

Please insert min. 20 characters.


Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No