Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit aef8957

Browse files
Foxandxsswesleycho
authored andcommitted
chore(readme): Add NPM installation instructions
Closes #3991
1 parent 41ebd98 commit aef8957

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Diff for: README.md

+17
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
### Quick links
88
- [Demo](#demo)
99
- [Installation](#installation)
10+
- [NPM](#install-with-npm)
1011
- [Bower](#install-with-bower)
1112
- [NuGet](#install-with-nuget)
1213
- [Custom](#custom-build)
@@ -29,6 +30,14 @@ Do you want to see directives in action? Visit http://angular-ui.github.io/boots
2930
Installation is easy as UI Bootstrap has minimal dependencies - only the AngularJS and Twitter Bootstrap's CSS are required.
3031
Note: Since version 0.13.0, UI Bootstrap depends on [ngAnimate](https://docs.angularjs.org/api/ngAnimate) for transitions and animations, such as the accordion, carousel, etc. Include `ngAnimate` in the module dependencies for your app in order to enable animation.
3132

33+
#### Install with NPM
34+
35+
```sh
36+
$ npm install angular-ui-bootstrap
37+
```
38+
39+
This will install AngularJS and Bootstrap NPM packages.
40+
3241
#### Install with Bower
3342
```sh
3443
$ bower install angular-bootstrap
@@ -61,6 +70,14 @@ When you are done downloading all the dependencies and project files the only re
6170
angular.module('myModule', ['ui.bootstrap']);
6271
```
6372

73+
If you're a Browserify or Webpack user, you can do:
74+
75+
```js
76+
var uibs = require('angular-ui-bootstrap');
77+
78+
angular.module('myModule', [uibs]);
79+
```
80+
6481
# Support
6582

6683
## FAQ

0 commit comments

Comments
 (0)