I have recently updated to the latest version of Bootstrap
:
"@ng-bootstrap/ng-bootstrap": "^1.0.0-beta.5",
"bootstrap": "^4.0.0-beta.2",
"core-js": "^2.4.1",
"jquery": "^3.2.1",
"popper.js": "^1.12.9",
As part of this update, I incorporated a navbar
:
<nav class="navbar navbar-expand-md navbar-light bg-light" *ngIf="!isLogged">
<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>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active" routerLinkActive="active current">
<a class="nav-link" routerLink="/sign-up"><span class="">Sign Up</span></a>
</li>
<li class="nav-item active" routerLinkActive="active current">
<a class="nav-link" routerLink="/login"><span class="">Login</span></a>
</li>
</ul>
</div>
</nav>
Although the navbar
does transform into a button
on mobile devices, unfortunately, the button is unresponsive to clicks. Does anyone have any insight into why this might be happening? It's worth noting that I haven't added any additional scripts to my angular.cli
.
UPDATE: Check out the project structure.
"dependencies": {
"@angular/animations": "^4.0.0",
"@angular/common": "^4.0.0",
"@angular/compiler": "^4.0.0",
"@angular/core": "^4.0.0",
"@angular/forms": "^4.0.0",
"@angular/http": "^4.0.0",
"@angular/platform-browser": "^4.0.0",
"@angular/platform-browser-dynamic": "^4.0.0",
"@angular/router": "^4.0.0",
"@ng-bootstrap/ng-bootstrap": "^1.0.0-beta.5",
"bootstrap": "^4.0.0-beta.2",
"core-js": "^2.4.1",
"jquery": "^3.2.1",
"popper.js": "^1.12.9",
"rxjs": "^5.4.1",
"zone.js": "^0.8.14"
},