Umbro
Umbro

Reputation: 2204

How to install angular-ui-bootstrap via npm in angularjs?

I am trying to install angular-ui-bootstrap in the following steps: 1. npm install angular-ui-bootstrap 2. import uiBootstrap from 'angular-ui-bootstrap'; 3. angular.module ('app', [      uiBootstrap    ])

I want to add:

<pager total-items="totalItems" ng-model="currentPage" items-per- 
page="itemsPerPage"></pager>

In the package.json file, I do not see any dependencies named angular-ui-bootstrap

Upvotes: 0

Views: 1546

Answers (1)

Harshad
Harshad

Reputation: 134

Run this:

npm install angular-ui-bootstrap --save.

The flag --save should add the dependency to package.json file.

Also, you will need to add the link to the CSS file path into the index.html to load the CSS.

Upvotes: 1

Related Questions