Dismiss
Announcing Stack Overflow Documentation

We started with Q&A. Technical documentation is next, and we need your help.

Whether you're a beginner or an experienced developer, you can contribute.

Sign up and start helping → Learn more about Documentation →

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

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.