“Cómo instalar Bootstrap en Angular 11” Código de respuesta

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

Instale Bootstrap Angular 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

Instalación de bootstrap en Angular 9

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

Cómo instalar Bootstrap en Angular 11

npm install bootstrap --save
Energetic Eel

Cómo instalar Bootstrap en Angular 11

@import "~bootstrap/dist/css/bootstrap.css";
Agreeable Addax

Respuestas similares a “Cómo instalar Bootstrap en Angular 11”

Preguntas similares a “Cómo instalar Bootstrap en Angular 11”

Más respuestas relacionadas con “Cómo instalar Bootstrap en Angular 11” en TypeScript

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código