John
John

Reputation: 2163

Angularjs 1.5 vs boostrap.js Compatibility

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">

plunkr example

Upvotes: 0

Views: 531

Answers (1)

su-
su-

Reputation: 3176

You need to make two changes to your 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 for state in states...

to

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

Upvotes: 1

Related Questions