The problem is when I type the new symbol, autocompleteed drop down list do not appear. It only appear if I delete character. How to fix it?
how to reproduce - type 3-5 characters, then delete last one.
The problem is when I type the new symbol, autocompleteed drop down list do not appear. It only appear if I delete character. How to fix it?
how to reproduce - type 3-5 characters, then delete last one.
Not sure what you real use-case is but if you just want to provide a fixed list of matches based on entered criteria you can do so very easily by simply providing a function call in the typeahead
expression:
typeahead="state for state in genData($viewValue)"
provided that the genData
is a function exposed on a scope:
$scope.genData = function(key){
return [key+ "abcd", key+ "111", key+ "FFc32", key+"777"];
};
Working plunk here: http://plnkr.co/edit/6SIGGS?p=preview
Also, please note that your plunk is using rather old version of angular-ui/bootstrap (0.4.0, while the latest is 0.6.0).