Bootstrap4 navbar always crashed

For some reason, the same code that I started working differently when I updated angular ... here is my navigator code

<nav *ngIf="authService.isLoggedin" class="navbar navbar-toggleable-md navbar-light bg-faded"> <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <a class="navbar-brand" routerLink="home">Mavis</a> <div class="collapse navbar-collapse" id="navbarSupportedContent"> <ul class="navbar-nav mr-auto"> <li class="nav-item" *ngIf="authService.isAdmin"> <a class="nav-link" routerLink="settings">Settings</a> </li> <li class="nav-item"> <a class="nav-link" routerLink="home">Home</a> </li> <li class="nav-item"> <a class="nav-link" routerLink="session">Session</a> </li> </ul> <div class="nav navbar-nav navbar-right"> <button (click)="logout()" class="navbar-brand"><strong>Logout</strong></button> </div> </div> 

My problem is that navbar always crashes, regardless of the width of the screen, it looks great on the phone, but not on the desktop. I am sure that I have setup bootstrap with my angular 2 project correctly .. but, to be sure, I added them to my angular-cli.json file

 "styles": [ "../node_modules/bootstrap/dist/css/bootstrap.min.css", "styles.css" ], "scripts": [ "../node_modules/jquery/dist/jquery.js", "../node_modules/tether/dist/js/tether.js", "../node_modules/popper.js/dist/umd/popper.js", "../node_modules/bootstrap/dist/js/bootstrap.js" ], 
+3
javascript angular twitter-bootstrap navbar
source share

No one has answered this question yet.

See similar questions:

7
Bootstrap 4 Navbar Always Crashing

or similar:

677
Change the color of the navigation bar on Twitter Bootstrap
10
Navbar switch does not work with angular 4 / ng-bootstrap
6
Bootstrap 4 Navbar aligns to the right
4
Bootstrap 4 responsive navbar that crashes with xs width?
3
Hide bot navigation mark and display only centered when navbar crash
2
Corner user interface and bootstrap: minimize mobile navigator by link
one
Bootstrap v4 multiple navbar-toggleable aimed at a single navigator switch
one
Make Bootstrap Navigation Bar Always Crash
one
Bootstrap displaying a navigation bar crashed by default in a web browser
0
Quick Response Boot Button 4 in the Navigation Bar

All Articles