This repository was archived by the owner on May 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Typeahead + Bootstrap 2.3.2 + Angular 1.2.0 RC2 #1154
Labels
Comments
I had to go back to Angular 1.1.5 to get the Typeahead working. |
Apart from #949 (that needs to be fixed on the AngularJS side) you simply had number of coding mistakes in your plunk. Fixed version here: http://plnkr.co/edit/oaqWQh?p=preview |
@pkozlowski-opensource, there is no other issue. I was using promises in my return values. #949 encapsulates the issue entirely. |
Ah, sorry... My problem is the one described by #949, however I created such a shoddy plunkr I thought that the issue was more widespread than it really is... My bad 😢 |
In reality my HTML is: <input type="text" class="input-block-level" ng-model="part.labelImage"
typeahead="file as file.filename for file in labelImages($viewValue)"
typeahead-editable="false" typeahead-on-select="measureLabels($index)"
required/> and CoffeeScript: $scope.labelImages = (imgFilename) ->
return $http.get('https://api.mywebsite.com/labelImages?limit=15&' +
'sPath=filename&sVal=' + encodeURIComponent(imgFilename))
.then (response) ->
return response.data |
And I've confirmed the issue doesn't arise in 1.2.0-rc1, so it's definitely that. Thanks all. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm struggling to get the typeahead working with this mix of libraries, is this something that's supposed to be supported?
See here: http://plnkr.co/edit/VaVXTn?p=preview
The text was updated successfully, but these errors were encountered: