“Como adicionar Bootstrap na CLI angular” Respostas de código

Instale o bootstrap angular

# 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

como adicionar bootstrap no angular

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

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

Instalando o bootstrap no Angular 9

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

Adicionando bootstrap ao angular

 $ npm install --save bootstrap
Ankur

Instale o bootstrap no Angular 9

npm install bootstrap --save
Energetic Eel

Como adicionar Bootstrap na 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

Respostas semelhantes a “Como adicionar Bootstrap na CLI angular”

Perguntas semelhantes a “Como adicionar Bootstrap na CLI angular”

Mais respostas relacionadas para “Como adicionar Bootstrap na CLI angular” em JavaScript

Procure respostas de código populares por idioma

Procurar outros idiomas de código