Reputation: 2163
I have some compatibility problems with AngularJS 1.5 and Boostrap.js.
I tried some versions without success. I created a plunkr to exemplify that an typeahead input doesn't work.
<input type="text" ng-model="selected" uib-typeahead="state for state in states | filter:$viewValue | limitTo:8" class="form-control">
Upvotes: 0
Views: 531
Reputation: 3176
You need to make two changes to your code:
change
var scotchApp = angular.module('scotchApp', ['ngRoute']);
to
var scotchApp = angular.module('scotchApp', ['ngRoute', 'ui.bootstrap']);
change
typeahead="state for state in states...
to
uib-typeahead="state for state in states...
Upvotes: 1