adding bootstrap to angular 9 code example

Example 1: how to add bootstrap in angular

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

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

Example 2: install bootstrap in angular 9

npm install bootstrap --save

Example 3: install bootstrap angular

npm install --save bootstrap

Example 4: installing bootstrap in angular 9

....      "styles": [        "node_modules/bootstrap/dist/css/bootstrap.min.css",        "src/styles.css"      ],      "scripts": [          "node_modules/jquery/dist/jquery.min.js",          "node_modules/bootstrap/dist/js/bootstrap.min.js"      ].....

Tags:

Css Example