javascript - Typeahead not recognized inside ng-view -
javascript - Typeahead not recognized inside ng-view -
i have 2 files. 1 index.html, frame website, , other main.html holds template homepage. have next code right before scripts imported.
<div class="container"> <div class="well" ng-view=""></div> <div class="footer"> <p translate="footer">well hello there mr. footer</p> </div> </div>
all typeahead , controllers imported in scripts. defaults pulling main.html because of routed controller. issue when set next code index.html, typeahead works fine, as move main.html stops working. of javascript beingness ran files, shouldn't conflict of loads first... thoughts?
<div ng-controller="employeecontroller"> <table> <center> <div id="the-basics"> <input type="text" ng-model="text" ng-change="get(text, 'name')" class="typeahead" id="search" placeholder="search employees..."/> </div> <button class="btn btn-primary btn-md" ng-click="get(text, 'name')"> <span class="glyphicon glyphicon-search"></span> </button> </center> </table> </div>
here similar question never answered: bootstrap typeahead not registering in angularjs ng-view
i able resolve issue putting script import controllers straight main.html.
javascript html angularjs twitter-bootstrap typeahead
Comments
Post a Comment