0

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

2
  • npm install -s angular-ui-bootstrap . the -s flag will add the dependency to your package.json. What is the error you are getting ? Commented May 14, 2019 at 11:41
  • I don' t have any errors. Your solution doesn't work. I can't see this in package.jason Commented May 14, 2019 at 11:44

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

13 Comments

It saved in package.json, but I can't add <pager total-items="totalItems" ng-model="currentPage" items-per- page="itemsPerPage"></pager>
Do you want to display the pager? This is something from the documentation. <div> <h4>Pager</h4> <pre>You are currently on page {{currentPage}}</pre> <ul uib-pager total-items="totalItems" ng-model="currentPage"></ul> </div>
Yes. I found it in the documentation - pagination
I can't see on the page.
Please share the code, so that we can figure out the issue.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.