NG Bootstrap - Angular directives specific to Bootstrap 4

npm version Build Status devDependency Status Sauce Test Status

Welcome to the Angular version of the Angular UI Bootstrap library. This library is being built from scratch by the ui-bootstrap team. We are using TypeScript and targeting the Bootstrap 4 CSS framework.

As with Bootstrap 4, this library is a work in progress. Please check out our list of issues to see all the things we are implementing. Feel free to make comments there.

Table of Contents


View all the directives in action at



After installing the above dependencies, install ng-bootstrap via:

npm install --save @ng-bootstrap/ng-bootstrap

Once installed you need to import our main module:

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

The only remaining part is to list the imported module in your application module. The exact method will be slightly different for the root (top-level) module for which you should end up with the code similar to (notice NgbModule.forRoot()):

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

  declarations: [AppComponent, ...],
  imports: [NgbModule.forRoot(), ...],  
  bootstrap: [AppComponent]
export class AppModule {

Other modules in your application can simply import NgbModule:

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

  declarations: [OtherComponent, ...],
  imports: [NgbModule, ...], 
export class OtherModule {


If you are using SystemJS, you should also adjust your configuration to point to the UMD bundle.

In your systemjs config file, map needs to tell the System loader where to look for ng-bootstrap:

map: {
  '@ng-bootstrap/ng-bootstrap': 'node_modules/@ng-bootstrap/ng-bootstrap/bundles/ng-bootstrap.js',

Supported browsers

We support the same browsers and versions supported by both Bootstrap 4 and Angular, whichever is more restrictive. See this for up-to-date Angular browser support.

  • Chrome (45+)
  • Firefox (40+)
  • IE (10+)
  • Edge (20+)
  • Safari (7+)

Also check Bootstrap 4’s notes on browsers support.

Contributing to the project

Please check the doc for contribution guidelines.

Getting Help

Please, do not open issues for the general support questions as we want to keep GitHub issues for bug reports and feature requests. You’ve got much better chances of getting your question answered on StackOverflow where maintainers are looking at questions tagged with ng-bootstrap.

StackOverflow is a much better place to ask questions since: * there are hundreds of people willing to help on StackOverflow * questions and answers stay available for public viewing so your question / answer might help someone else * SO voting system assures that the best answers are prominently visible.

To save your and our time we will be systematically closing all the issues that are requests for general support and redirecting people to StackOverflow.

You think you’ve found a bug?

Oh, we are ashamed and want to fix it ASAP! But before fixing a bug we need to reproduce and confirm it. In order to reproduce bugs we will systematically ask you to provide a minimal reproduction scenario using Having a live, reproducible scenario gives us wealth of important information without going back & forth to you with additional questions like: * version of Angular used * version of this library that you are using * 3rd-party libraries used, if any * and most importantly - a use-case that fails

A minimal reproduce scenario using allows us to quickly confirm a bug (or point out coding problem) as well as confirm that we are fixing the right problem. The best part is that you do not need to create plunks from scratch - you can fork one from our demo page.

We will be insisting on a minimal reproduce scenario in order to save maintainers time and ultimately be able to fix more bugs. Interestingly, from our experience users often find coding problems themselves while preparing a minimal plunk. We understand that sometimes it might be hard to extract essentials bits of code from a larger code-base but we really need to isolate the problem before we can fix it.

Unfortunately we are not able to investigate / fix bugs without a minimal reproduce scenario using, so if we don’t hear back from you we are going to close an issue that don’t have enough info to be reproduced.

Code of Conduct

Please take a moment and read our Code of Conduct

Related Repositories



Angular powered Bootstrap ...



An AngularJS select replacement which build select like dropdown component with collection and ng-model support ...



Angular/Bootstrap animated submit button directive ...



rebirth-ng is a ui framework for angular4 & bootstrap. ...



Provides a form field validation JavaScript library for your Rails application. Built for use with jQuery and Twitter Bootstrap 3. Source code: huuphuoc/bootstrapvalidator ...

Top Contributors

pkozlowski-opensource Foxandxss jnizet maxokorokov icfantv wesleycho sendilkumarn robwormald mlaval sirajc RobJacobs chenyuzhcy miguelc1221 ExFlo Souhail-5 tsm91 agrahamlincoln benouat Hongbo-Miao k-schneider Brocco pra85 jiverson


package version
@angular/core 4.0.3
@angular/common 4.0.3
@angular/forms 4.0.3
dev @angular/compiler 4.0.3
@angular/compiler-cli 4.0.3
@angular/http 4.0.3
@angular/platform-browser 4.0.3
@angular/platform-browser-dynamic 4.0.3
@angular/router 4.0.3
@ngtools/webpack 1.3.0
@types/jasmine 2.5.41
@types/node ^6.0.46
angular2-template-loader ^0.6.0
async-done ^1.2.2
autoprefixer ^6.5.1
bootstrap 4.0.0-alpha.6
clang-format 1.0.35
copy-webpack-plugin ^4.0.0
core-js ^2.4.1
css-loader ^0.25.0
del ^2.2.2
enhanced-resolve 3.3.0
extract-text-webpack-plugin ^2.0.0-beta.4
file-loader ^0.9.0
glob ^7.1.1
gulp ^3.9.1
gulp-clang-format ^1.0.23
gulp-conventional-changelog ^1.1.0
gulp-ddescribe-iit ^1.3.0
gulp-file ^0.3.0
gulp-gh-pages ^0.5.4
gulp-shell ^0.5.2
gulp-tslint ^6.1.2
gulp-util ^3.0.7
he ^1.1.0
html-loader 0.4.4
html-webpack-plugin 2.24.1
ie-shim ^0.1.0
jasmine ^2.5.2
jasmine-core ^2.5.2
jasmine-node ^1.14.5
karma ^1.3.0
karma-chrome-launcher ^2.0.0
karma-coverage ^1.1.1
karma-firefox-launcher ^1.0.0
karma-jasmine ^1.0.2
karma-sauce-launcher ^1.1.0
karma-sourcemap-loader ^0.3.7
mkdirp ^0.5.1
node-sass ^3.10.1
postcss-loader ^1.1.0
prismjs ^1.5.1
prismjs-loader 0.0.4
raw-loader ^0.5.1
reflect-metadata ^0.1.8
remap-istanbul ^0.7.0
run-sequence ^1.2.2
rxjs ^5.0.1
sass-loader ^4.0.2
style-loader ^0.13.1
systemjs ^0.19.40
ts-loader 2.0.0
tslint ^3.15.1
typescript 2.1.5
url-loader ^0.5.7
webpack 2.2.0
webpack-dev-server 2.2.0
zone.js 0.8.10


-   1.0.0-alpha.6 zip tar
-   1.0.0-alpha.5 zip tar
-   1.0.0-alpha.4 zip tar
-   1.0.0-alpha.3 zip tar
-   1.0.0-alpha.2 zip tar
-   1.0.0-alpha.1 zip tar
-   1.0.0-alpha.0 zip tar