Skip to main content

Command Palette

Search for a command to run...

Using Bootstrap in Angular with SCSS

Updated
•1 min read•View as Markdown
H

I'am mobile developer

npm install bootstrap --save

or

yarn add bootstrap

If you are using SCSS, don't add it to your angular.json config. Instead, add this to your scr/styles.scss directly:

@import '../node_modules/bootstrap/scss/bootstrap';

if you are using css

"styles": [
          "node_modules/bootstrap/dist/css/bootstrap.css",
          "src/styles.css"
        ],

        "scripts": [
          "node_modules/popper.js/dist/umd/popper.min.js",
          "node_modules/bootstrap/dist/js/bootstrap.min.js"
        ]

More from this blog

Hung Son's blog

35 posts

Sơn!