0

I am getting error while loading the module for angular JS in my Module, UI bootstrap here is not getting loaded despite of all the dependencies resolved.

can any one help me ?

Fiddle Link

https://jsfiddle.net/tvaibhav/1pucru6L/

var myApp = angular.module("angularTypeahead", ["ui.bootstrap"]);

3 Answers 3

2

correct angular boostrap scipt tag as script

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

Comments

1

You need to add ng-app to your view,

<html ng-app="angularTypeahead">

Also

Change javascript -> Load type - > Wrap in body

WORKING DEMO

3 Comments

i have included your changes in my project but it is still giving me error of Uncaught Error: [$injector:modulerr]. Also, you have mentioned two ng-App still it worked can u tell me ?
@vaibhav it works! no need to mention ng-app only change the fiddle settings jsfiddle.net/sajeetharan/1pucru6L/9
@Sanjeetharan thanks a lot, actaully It was a mistake that I overlooked, <script> tags for the bootstrap was wriiten as <scipt> which was creating a probelem.Thanks a lot for your help.
1

In your situation you need to use ng-app in html tag.

<html ng-app="angularTypeahead">

Comments

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.