Getting Module Injection Error Using Angularjs ui-bootstrap

I want to use Angularjs Bootstrap UI in my application. Following the angular.js link, I include these files in my index pages:


and in my application app.jsinclude this line:

var ap = angular.module('ap', ['ngRoute','ui.bootstrap']).config(negsotimeRouter);

but I get this error when trying to see the page:

Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.2.16/$injector/modulerr?p0=negsotime&p1=Error…arjs.org%2F1.2.16%2F%24injector%2Fmodulerr%3Fp0%3Dui.bootstrap%26p1%3DErro...<omitted>...5) angular.js:36

with the following link Error link

+4
source share
2 answers

You are not given a script link to an Angular UT Bootstrap script. You need to download it and make a link to it.

, : https://github.com/angular-ui/bootstrap/blob/gh-pages/ui-bootstrap-0.6.0.min.js

: https://github.com/angular-ui/bootstrap/tree/gh-pages

, Angular ui.bootstrap script.

+2

Source: https://habr.com/ru/post/1536758/


All Articles