I'm trying to use uib-typeahead to loop through an object but I can't figure out what to put in the uib-typeahead argument.
My HTML is:
<input type="text" ng-model="selected" uib-typeahead="option for option in options" class="form-control">
And my Angular code is:
$scope.options = {
22: "Abc",
27: "Def",
55: "Ghi"
}
If I type anything right now I don't see anything. I would like to get the key value in the input when I selected one of the options. What should I put in the uib-typeahead argument?