twbs / bootstrap

The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web.
https://getbootstrap.com
MIT License
170.92k stars 78.89k forks source link

Bootstrap4 collapsible and accordion does not work with Angular6 #27269

Closed Rugved closed 6 years ago

Rugved commented 6 years ago

Hi

I have setup angular 6 project with bootstrap4, here is the live demo https://stackblitz.com/github/Rugved/ng6bt4Demo/

OS: Windwos 10 Browsers: Chrome, IE 11

No error in the browser but collapse does not work

mdo commented 6 years ago

Issues are for bug reports and feature requests, not general how-to questions. We cannot help you with Angular support here. For that, we suggest the official Slack channel or Stack Overflow. Both are linked from our readme.

Thanks!

Rugved commented 6 years ago

I would hope you reconsider, this is issue with bootstrap version 4. It stopped working after the update.

mdo commented 6 years ago

The collapse works fine in our docs—we can't speak to using it with Angular. If there's a problem with Bootstrap's CSS or JS outside Angular, we'd need a reduced test case in a CodePen or JS Bin.

Johann-S commented 6 years ago

@Rugved I didn't see any import of Bootstrap in your StackBlitz,

See mine, it works very well: https://stackblitz.com/edit/github-dptdcv?file=src/app/app.component.ts

Rugved commented 6 years ago

Hi guys , thanks for support. You are right i didnt have jquery defined in json file above bootstrap. That fixed the issue, no problem with bootstrap 4 at all