“So installieren Sie Bootstrap in Angular” Code-Antworten

Installieren Sie Winkelstiefel

# 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>
Grumpy Gnu

So fügen Sie Bootstrap in Angular hinzu

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

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

Startstrap Angular 9 einbauen 9

From angular cli:

npm install --save bootstrap
npm install --save jquery

Then add the following paths to angular.json:

"node_modules/bootstrap/dist/css/bootstrap.css" in the projects -> architect -> build -> styles array
"node_modules/jquery/dist/jquery.js" in the projects -> architect -> build -> scripts array
"node_modules/bootstrap/dist/js/bootstrap.js" in the projects -> architect -> build -> scripts array
Joyous Jellyfish

Startstrap in Angular 9 installieren

ng add @ng-bootstrap/ng-bootstrap
Concerned Crossbill

Startstrap Angular einbauen

npm install --save bootstrap
Ankur

So installieren Sie Bootstrap in Angular

npm install bootstrap
Dizzy Dove

Ähnliche Antworten wie “So installieren Sie Bootstrap in Angular”

Fragen ähnlich wie “So installieren Sie Bootstrap in Angular”

Weitere verwandte Antworten zu “So installieren Sie Bootstrap in Angular” auf JavaScript

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen