-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Typeahead(Asynchronous results) doesn't works with Angular 1.4 #3789
Comments
Plunker, please: https://github.com/angular-ui/bootstrap/blob/master/CONTRIBUTING.md#you-think-youve-found-a-bug I can't reproduce with the example from our demo page: http://plnkr.co/edit/vTB8bWad9MuEMB7kX1CM?p=preview |
Getting same error and the issue only comes when you use filter with Async HTTP Request Please suggest if u have a quick solution, trying to find a workaround by my self too... |
+1 |
Getting the same error as @dosapati plunker, with an async call, this has changed since 1.4.x. It will work if you remove the filter, see plunker. This only happens if I do an async call, if I already have the list (array), it works like it should (with filter:$viewValue). I use angular v1.4.x and angular-bootstrap v0.12.1 (same error with: v0.13.0). How to resolve, is the filter needed? |
Guys, the way you use fitter suggest that you want to apply a filter to a ... promise which obviously doesn't make sense. You need to filter the results in the JS code, see: #1740 |
@pkozlowski-opensource thanks, didn't think about that ffs, fixed for me. You don't need the $filter of course if your back-end is filtering them. |
Right, this is the usual approach. But you still might want to do some adjustments on the client side. Anyway, this works as expected, nothing to fix here. |
Error: [filter:notarray] Expected array but received: {}
http://errors.angularjs.org/1.4.0/filter/notarray?p0=%7B%7D
The text was updated successfully, but these errors were encountered: