“Cómo agregar bootstrap en cli angular” 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

Cómo agregar bootstrap en angular

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

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

Instalación de bootstrap en Angular 9

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

Agregar bootstrap a Angular

 $ npm install --save bootstrap
Ankur

Instale Bootstrap en Angular 9

npm install bootstrap --save
Energetic Eel

Cómo agregar bootstrap en cli angular

//1. Install ngx-bootstrap and bootstrap:
npm install ngx-bootstrap bootstrap --save

//2. Open src/app/app.module.ts and add:
import { AlertModule } from 'ngx-bootstrap';
...
@NgModule({
...
imports: [AlertModule.forRoot(), ... ],
... 
})
          
//3. Open angular-cli.json        
"styles": [
"styles.css",
"../node_modules/bootstrap/dist/css/bootstrap.min.css"
],
          
Tiny Coders

Respuestas similares a “Cómo agregar bootstrap en cli angular”

Preguntas similares a “Cómo agregar bootstrap en cli angular”

Más respuestas relacionadas con “Cómo agregar bootstrap en cli angular” en JavaScript

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código