You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 29, 2019. It is now read-only.
If you pass an empty collection (by definition it does not contain any elements) it will happen that it has single "undefined" elements. The key elements to see this are:
uib-typeahead="foo(state) for state in getLocation()"
getLocation simply returns [] -- i.e. empty collection. And now all it takes is just check what will happen in foo. It will get an "undefined" element.
It is bad also because user has to know that as a result to getting undefined it is required to return "undefined" as well (not null, not empty string, but undefined). Otherwise the ng-model binding won't work.
Link to minimally-working plunker that reproduces the issue: