Search code examples
javascripthtmlangularjsangularjs-directiveangularjs-scope

Angular JS : Error while getting data from typeahead


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"]);

Solution

  • You need to add ng-app to your view,

    <html ng-app="angularTypeahead">
    

    Also

    Change javascript -> Load type - > Wrap in body
    

    WORKING DEMO