Import Bootstrap in Angular 6 with ng add
See original GitHub issueWith the last version of Angular (6.0.0) there is a CLI to automatically add dependencies to an angular project. This makes it possible to import the NPM library and to modify the files of the project to use this library. https://blog.angular.io/version-6-of-angular-now-available-cc56b0efa7a4#cff5
It could be great to have a shematic to just have to launch ng add bootstrap and the last version of bootstrap is added in the package.json, installed and the main style file import the bootstrap css or scss.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:6 (4 by maintainers)
Top Results From Across the Web
How to add bootstrap in angular 6 project? - Stack Overflow
Configuration · OPTION-1 execute npm install bootstrap@4 jquery --save · OPTION 2. Add files from CDN (Content Delivery Network) to your project ...
Read more >Getting Started - Angular powered Bootstrap
Add bootstrap CSS/SCSS to your project (no javascript is required); Import NgbModule , or any other component module like NgbPaginationModule , or directly ......
Read more >Add Bootstrap 4 to Angular 6 or Angular 7 application
Once installed, you need to import our main module and add the imported module in the root module. To do that, open app.module.ts...
Read more >How to Add Bootstrap to an Angular Application
Let's create the application with the Angular base structure using the @angular/cli with the route file and the SCSS style format. ng new ......
Read more >How to Add Bootstrap to an Angular CLI project - Loiane Groner
1: Creating an Angular project with Angular CLI · 2: Installing Bootstrap from NPM. 2.1: Alternative: Local Bootstrap CSS · 3: Importing the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

There should be a @bootstrap/schematics for angular! To use
ng add bootstraporng add @bootstrap/schematicsto combine bootstrap and angular. It will improve integration experience by 200%.@mdo it’s to allow Angular user to install the last release of Bootstrap easely
I’m not against it, but I’ll have to dig it a bit before adding that