Dynamic Navbar Buttons

When I use ngIf or ngFor with buttons inside of the navbar, the buttons are styled incorrectly. Their styling is only correct if they are written directly into the html, so they can’t be dynamically added. If a button is added programmatically, the button is styled as a normal button rather than a navbar button. Is there a way to fix this?

For example, this issue occurs with the following code:


  
    
      
    
  

1 Like

I’ve duscovered the same problem. Also, the nav-bar doesn’t seem to change after the page has been initiated. I’ve wrapped the navbar in a custom component that listens to some events and for example toggles the visibility of the buttons. The initial state works fine, but no changes later on are applied. The controller updates (I can console.log variables changes etc in it, but the view doesn’t update).

1 Like

have you been able to find a solution for this?