jhipster / generator-jhipster

JHipster is a development platform to quickly generate, develop, & deploy modern web applications & microservice architectures.
https://www.jhipster.tech
Apache License 2.0
21.55k stars 4.02k forks source link

How to use ng2-bootstrap with jHipster #5425

Closed santoshkt closed 7 years ago

santoshkt commented 7 years ago
Overview of the issue

My team has done user interface work for a new project based on Bootstrap 3.3.7 and I don't think they will be ready to change it to BS4 since its still in alpha. I'm thinking it would be the case with lot of other users as well who will not be ready to work on alpha versions. I already read about this debate in ng-bootstrap and they have decided not to support BS3. Is it possible for jHipster to provide ng2-bootstrap support or may be if anyone has already done this, provide instructions on what needs to be done to use ng2-bootstrap instead of ng-bootstrap ?

I tried to update vendor.ts, webpack.vendor.js and changed imports in app.module.ts but that did not help. I probably need to debug more but hoping for some help from who already did this or have knowledge on this.

Motivation for or Use Case

jHipster 4.x with Angular 2 should be usable with Bootstrap 3.x.x since BS4 is not a stable release.

JHipster Version(s)

4.0.8

deepu105 commented 7 years ago

@santoshkt our ng2 support is still in BETA so we wont be making any efforts to support BS3 on that as BS4 is the future. I dont see why you shouldn't use BS4 its quite stable. If you are really worried about BETA software then I suggest you use the AngularJS1 option which is pretty stable.

Having said that if you want to use something other than ng-bootstrap which we use, you need to generate the project and then change it manually. You would need to downgrade the css/sass part to BS3 as well. This is lot of work for us and hence we wont be doing it. If you need further help on this I suggest you take the query to stack overflow

santoshkt commented 7 years ago

Thank you Deepu.

For anyone coming to this page on how to integrate ng2-bootstrap with jHipster, I have posted instructions that worked for me at https://github.com/valor-software/ng2-bootstrap/issues/1762. Good luck.