I just found the amazing Stackblitz online VS Code editor. I created an Angular project and under dependencies installed the Bootstrap CSS framework but how
Add this line: @import url('https://unpkg.com/bootstrap/dist/css/bootstrap.min.css');
Click DEPENDENCIES menu at left of screen. There is an input says: 'enter js/css cdn url'
https://code.jquery.com/jquery-3.3.1.slim.min.js
and hit enter. https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js
and hit enter.Now you can use most of the bootstrap component like buttons and modal etc...
try this :
style.css
@import url('https://unpkg.com/bootstrap@3.3.7/dist/css/bootstrap.min.css')
It will load all your glyphicon icons
Add the following line of code in styles.css under src
@import url('https://unpkg.com/bootstrap@4.5.0/dist/css/bootstrap.min.css')
So to have the latest version of Bootstrap go to
https://getbootstrap.com/docs/4.5/getting-started/introduction/
Search for CSS CDN link, from that link copy the version (in my case 4.5.0) and replace it with the above import statement.
In dependencies add "bootstrap" then click enter.
then write following line in styles.css in src
folder
@import '~bootstrap/dist/css/bootstrap.min.css';
Quite an old question but anyway this will be helpful for any one looking to include bootstrap in Stackblitz.
Step 1: Go to app.module.ts and write
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
Stackblitz will automatically prompts you for installing ng-bootstrap module.
Step 2: Add NgbModule in imports array.
imports: [ BrowserModule, FormsModule, NgbModule ],
Step 3: In your styles.css
@import '~bootstrap/dist/css/bootstrap.min.css';
Now you should be getting glyphicons in your Angular project.