Angular bootstrap typeahead does not work with Angular 1.3.0

I created a small plunker to show that this does not work. Can someone please help me how to use typeahead with 1.3.0 angularJS / provide alternative solutions. We use it with angular-bootstrap 0.11.0 and the latest bootstrap version. Our code is heavily dependent on the ng messages introduced in 1.3.0

Here is the plunker link

As you can clearly see, click events, up arrows, and down arrows do not work. Adding some code to make it so happy. :)

<div class="container-fluid" ng-controller="TypeaheadCtrl"> <h4>Static arrays</h4> <pre>Model: {{selected | json}}</pre> <input type="text" ng-model="selected" typeahead="state for state in states | filter:$viewValue | limitTo:8" class="form-control" /> </div> 
+7
angularjs angular-bootstrap
source share
1 answer

You currently have three options:

  • Downgrade angular.js to 1.3.0-beta.10

    The error is caused by this ngIf fixed d71df9 , which is unloaded in 1.3.0-beta.11

  • Downgrade angular-bootstrap to 0.10.0

    The typeahead directive started using ngIf at 0.11.0 , so it will also drop to 0.10.0 .

  • Wait angular-bootstrap 0.12.0

    There is already an open question # 2474 , it is planned to be installed in 0.12.0

EDIT: It seems that the problem was fixed by this fix a0be450d and landed at 0.11.2 .

+11
source share

All Articles