0

I am attempting to use bootstrap ui's pagination on and angularjs project. I am receiving error message 'Error: [$injector:modulerr]'. I have been following the example here Angular UI bootstrap pagination not working inside ui.bootstrap.tabs however i'm using json to retrieve data so my code is slightly different.

I've created a Plunker: https://plnkr.co/edit/omQ2qxgkmK5HAkd0wBC6 to display my code.

These are the CDNs I am using for the project:

<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.9/angular-route.min.js"></script>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>

<link href="https://cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/1.1.1/ui-bootstrap-tpls.min.js">

<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" crossorigin="anonymous"></script>
14
  • 1
    Have you injected ui.bootstrap into your angular app module? i.e. var app = angular.module('app', ['ui.bootstrap']) Commented Jan 28, 2016 at 15:00
  • yes, I injected ui.bootstrap var defaultPage = angular.module('DefaultPage', ['ui.bootstrap']); Commented Jan 28, 2016 at 16:03
  • The apps.js file, containing the definition of the main GithubIssues module, is not included in the html page. Read the error message. It says: Uncaught Error: [$injector:modulerr] Failed to instantiate module GithubIssues due to: Error: [$injector:nomod] Module 'GithubIssues' is not available!. Commented Jan 28, 2016 at 22:20
  • @JBNizet when I inject 'ui-bootstrap' in apps.angular.module('GithubIssues', ['ui-bootstrap']) the problem still exists. Commented Jan 28, 2016 at 22:48
  • Read my comment again. Read the error message again. I never told you to do that. I told you to ass the apps.js script in the html page. Commented Jan 28, 2016 at 22:51

0

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.