Join the Stack Overflow Community
Stack Overflow is a community of 6.4 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up

I want to use Angularjs Bootstrap UI in my application.after angular.js reference i include these files in my index pages :


and in my application app.js include this line :

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

but i get this error when try 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

share|improve this question
    
do you need that config? try removeing it ? var ap = angular.module('ap', ['ngRoute','ui.bootstrap']); – Erick Apr 16 '14 at 10:45
    
Yes. negsotimeRouter is my router function – user3413838 Apr 16 '14 at 10:51
1  
And you have misspelled <scripttype – Erick Apr 16 '14 at 10:52
1  
if fix it . the error style happen – user3413838 Apr 16 '14 at 10:54
    
check if all included files are loaded, by CTRL+ U and search for file names. Another misspelled is that you haven`t closed boostrap script tag... – Erick Apr 16 '14 at 11:07

You are missing the script reference to the Angular UI Bootstrap script itself. You need to download it and make a reference to it.

For instance the latest version: https://github.com/angular-ui/bootstrap/blob/gh-pages/ui-bootstrap-0.6.0.min.js

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

As you can see, the angular ui.bootstrap module is defined in that script.

share|improve this answer
    
And how should he make the reference? And it should be afer the main AngularJs ? – Mawg Mar 26 at 11:35

This is an old post, but I will post what worked for me.

I downloaded the js file from https://github.com/angular-ui/bootstrap/blob/gh-pages/ui-bootstrap-tpls-2.3.0.min.js

Placed it in a directory with my other angular scripts

Made a reference to it in the Index.html file using a <Script> tag.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.