-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
hamburger menu not working #2919
Comments
I'm sorry but this is not clear from the provided description what is not working. We absolutely need a minimal reproduce scenario as requested in the issue template: https://github.com/ng-bootstrap/ng-bootstrap/blob/master/README.md#you-think-youve-found-a-bug |
What is "not working" is the compatibility between ngx-bootstrap, ng-bootstrap and twitter bootstrap. I have fixed this now anyway and am posting my index.html mark-up here to help anyone else that runs into bootstrap problems: `<!doctype html> <title>Angular Seven</title> <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script> Loading... ` |
We never had and won't ever had compatibility between ngx-bootstrap and ng-bootstrap as our goals - in fact we are discouraging using both projects together. If you are counting on using both together you might be coming to those projects with wrong assumptions. As for the bootstrap itself - ng-bootstrap needs only bootstrap's CSS - no jquery, no popper and no bootstrap.min.js. If you use those there is no point of using ng-bootstrap as it is mean to be replacement for the mentioned JS files. ng-bootstrap should work without jquery, popper and bootstrap.min.js - if it doesn't that this is a bug for which we need a minimal reproduce scenario (hence my request). |
yes but ng-bootstrap doesn't appear to have nice reponsive navbars !
…On Tue, 11 Dec 2018 at 15:30, Pawel Kozlowski ***@***.***> wrote:
What is "not working" is the compatibility between ngx-bootstrap,
ng-bootstrap and twitter bootstrap.
We never had and won't ever had compatibility between ngx-bootstrap and
ng-bootstrap - in fact we are discouraging using both projects together. If
you are counting on using both together you might be coming to those
projects with wrong assumptions.
As for the bootstrap itself - ng-bootstrap needs *only* bootstrap's CSS -
no jquery, no popper and no bootstrap.min.js. If you use those there is no
point of using ng-bootstrap as it is mean to be *replacement* for the
mentioned JS files.
ng-bootstrap *should* work without jquery, popper and bootstrap.min.js -
if it doesn't that this is a bug for which we need a minimal reproduce
scenario (hence my request).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2919 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKvNVVMhq4KWCuZRMj6gOFHyJQzwNU1nks5u389-gaJpZM4ZMQD_>
.
|
Angular version = 7.1.2
Bootstrap version = 4.1.3
ng-bootstrap version 4.0.0
When I collapse the browser to test the responsive layout the burger appears but clicking it doesn't expand its content.
Your site tells everyone not to use popper or jquery if using ng-bootstrap as it can interfere - I quote:
"Should I add bootstrap.js or bootstrap.min.js to my project?
No, the goal of ng-bootstrap is to completely replace JavaScript implementation for components. Nor should you include other dependencies like jQuery or popper.js. It is not necessary and might interfere with ng-bootstrap code."
But the dropdown wasn't working, so I used ngbDropdown, ngbDropdownToggle and ngbDropdownMenu and now that's working.
But, jquery and popper to make drop-downs work and ng-bootstrap doesn't have the navbar stuff, so you can see the problem here !!!
Developers don't want to have to download windows updates only to be told that if there is a problem then go to the source code on github and hack it, so why do we have to do this with front end code !!??
Or have I missed something ?
`
NavbarThe text was updated successfully, but these errors were encountered: