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: