Skip to content

Instantly share code, notes, and snippets.

@rvlb
Last active June 1, 2017 22:15
Show Gist options
  • Save rvlb/e9b7901c73775f41294d1855f62a82cf to your computer and use it in GitHub Desktop.
Save rvlb/e9b7901c73775f41294d1855f62a82cf to your computer and use it in GitHub Desktop.
Passo a passo para configurar o Bootstrap e o Font Awesome no Angular

Terminal:

ng new my-project --style=scss
cd my-project
npm install --save [email protected] @ng-bootstrap/ng-bootstrap font-awesome
ng serve

Em src/styles.scss, adicionar:

@import '~bootstrap/dist/css/bootstrap.min.css';
@import '~font-awesome/css/font-awesome.css';

Em src/app/app.module.ts, adicionar:

import { NgbModule } from '@ng-bootstrap/ng-bootstrap';

@NgModule({
  //...
  imports: [
    //...
    NgbModule.forRoot(),
    //...
  ],
  //...
})
//...
@rvlb
Copy link
Author

rvlb commented Jun 1, 2017

Referência do ng-bootstrap para substituir o que o Bootstrap implementa com JS (bootstrap.js e jQuery).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment