-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(navbar): Support for bootstrap navbar #540
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm having the same issue. According to #188:
|
Any updates? |
I need the bootstrap navbar as well. |
@justin-romano @szh @OBellon @Martin-Wegner We currently haven't enough time to implement this but we will take a look at this in the future. |
Any updates on this? |
any update? |
This is a pretty substantial limitation. I would think that adding support for navbar and the collapsed responsive navbar should be very high on the priority list. |
Why has no attention been paid to issues regarding the navbar? Has development slowed down or something? Does anybody know of any alternatives to this framework that actually include basic features such as the navbar? |
For anybody viewing these issues and looking for a solution, ng-bootstrap looks decent, with support for collapsing navbars already implemented (using an actual Angular 2 directive!). It also looks like it is more actively developed than this framework. (Not trying to cast shadows on this repo, but some people are genuinely needing an alternative and I would like to help them, 'cause that's what friendly developers who care about their peer's success do). |
@colindevs ng-bootstrap is only for Bootstrap 4 which is in alpha state and therefore not usable for production.
Please check the number of solved issues and commits here in ng2-bootstrap and rethink your opinion... |
"Please check the number of solved issues and commits here in ng2-bootstrap and rethink your opinion..." @Martin-Wegner As far as "early stage" goes, people have been building products with Angular 2 since alpha. Angular Material 2 is in alpha 9 and has even less commits than either of these frameworks, and it is already being used in a lot of places... So I don't think that this will be a problem. Finally, how does ng2-bootstrap make it to stable release without a basic feature such as the one mentioned in this issue, while ng-bootstrap supports it in its "alpha" stage? I'm just trying to give people who come to this issue when they realize that something isn't working something else to try out! |
@colindevs
ng-bootstrap is as old as ng2-bootstrap. You can find an issue in both projects which discussed a possible consolidation of both projects... |
That is true, I'll leave it at just a suggestion, and acknowledge the flaws
|
Lots of complaining going on her but still not clear of the problem. I use ng2-bootstrap and have a navbar with drop down menus, what's the actual problem? Is there a plunkr showing what's wrong? Is this just relating to a menu that changes for mobile / small screens? |
@Confusedfish the problem occurs on small screens when the menu collapsed to the 3 lines icon. |
Hello guys! Any updates here? |
Workaround:
|
http://valor-software.com/ngx-bootstrap/#/collapse |
In v1.6 dropdown directives doesn't add dropdown specific classes, so it could be used with navbar classes to achieve what you need (if you will need append to body it will still add dropdown class to holder) |
In Bootstrap 4 you can use class
|
Workaround example in bootstrap 4: <nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand"
href="#">Navbar</a>
<button class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent"
aria-label="Toggle navigation"
[attr.aria-expanded]="!isCollapsed"
(click)="isCollapsed = !isCollapsed">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse"
id="navbarSupportedContent"
[ngClass]="{'show': !isCollapsed}">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link"
href="#">Link One</a>
</li>
<li class="nav-item">
<a class="nav-link"
href="#">Link Two</a>
</li>
</ul>
</div>
</nav> isCollapsed: boolean = true; |
navbar is the FIRST component you should have sorted - really dont have time to debug ur bits...moving on! ...nice try :) |
When I replaced old bootstrap fir ng2-bootstrap i noticed my navbar menus no longer worked but i could not see an alternative .navbar component to replace it. I just put back the old bootstrap dependencies and it worked again. Feels dirty to have both.
I could not find a workaround to use ng2 bootstrap with navbars. Is this support in the roadmap?
The text was updated successfully, but these errors were encountered: