Answers for "angular add bootstrap"

8

adding bootstrap to angular

npm install bootstrap
npm install jquery


Add this to angular.json

"styles": [
              "node_modules/bootstrap/dist/css/bootstrap.css",
              "src/styles.css"
            ],
            "scripts": [
              "node_modules/bootstrap/dist/js/bootstrap.js",
              "node_modules/jquery/dist/jquery.js"
            ]
Posted by: Guest on June-20-2021
9

install angular bootstrap

# From project directory:
npm install --save bootstrap
npm install --save jquery

# Now edit `angular.json`
# Position: `projects -> architect -> build -> options`
# To `styles`, add "node_modules/bootstrap/dist/css/bootstrap.css"
# To `scripts`,
#   add "node_modules/jquery/dist/jquery.js"
#   and also "node_modules/bootstrap/dist/js/bootstrap.js"
# Test with
# <<div class="alert alert-primary" role="alert"> Bootstrap alert</div>
Posted by: Guest on August-16-2020
8

how to add bootstrap in angular

@import "~bootstrap/dist/css/bootstrap.css"

 "styles": [
              "./node_modules/bootstrap/dist/css/bootstrap.css",
              "src/styles.css"              
            ],
Posted by: Guest on July-31-2020
3

install bootstrap in angular 9

npm install bootstrap --save
Posted by: Guest on April-11-2020
1

add bootstrap to angular

npm install bootstrap
----------------------
@import "~bootstrap/dist/css/bootstrap.css"

 "styles": [
              "./node_modules/bootstrap/dist/css/bootstrap.css",
              "src/styles.css"              
    ],
Posted by: Guest on June-17-2021
2

angular add bootstrap

npm install bootstrap
Posted by: Guest on December-02-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language