Skip to content

Instantly share code, notes, and snippets.

@jsheridanwells
Last active May 13, 2018 18:22
Show Gist options
  • Save jsheridanwells/04c1ec872ff916f429cea80444df6714 to your computer and use it in GitHub Desktop.
Save jsheridanwells/04c1ec872ff916f429cea80444df6714 to your computer and use it in GitHub Desktop.
Adding Bootstrap 4 to Angular5 app

Adding Bootstrap 4 to an Angular 5 app:

  1. Add Bootstrap dependency:
$ npm install --save bootstrap
  1. Add Bootstrap CSS to styles.css:
@import "~bootstrap/dist/css/bootstrap.css"
  1. Any starter templates go in app.component.html

  2. Add Bootstrap DOM code for angular:

npm install --save @ng-bootstrap/ng-bootstrap
  1. Import code in app.module.ts:
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment