twitter bootstrap - Angularjs 1.5 vs boostrap.js Compatibility -


i have compatibility problems angularjs 1.5 , boostrap.js.

i tried versions without success. created plunkr exemplify typeahead input doesn't work.

<input type="text" ng-model="selected" uib-typeahead="state state in states | filter:$viewvalue | limitto:8" class="form-control"> 

plunkr example

you need make 2 changes code:

  1. in script.js,

change

var scotchapp = angular.module('scotchapp', ['ngroute']); 

to

var scotchapp = angular.module('scotchapp', ['ngroute', 'ui.bootstrap']); 
  1. in home.html,

change

typeahead="state state in states... 

to

uib-typeahead="state state in states... 

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -