angular-ui / bootstrap

PLEASE READ THE PROJECT STATUS BELOW. Native AngularJS (Angular) directives for Bootstrap. Smaller footprint (20kB gzipped), no 3rd party JS dependencies (jQuery, bootstrap JS) required. Please read the README.md file before submitting an issue!
http://angular-ui.github.io/bootstrap/
MIT License
14.3k stars 6.74k forks source link

typeahead don't suport "item.id as item.name" to only display item.name not item.id? #6669

Closed lemonl2 closed 6 years ago

lemonl2 commented 6 years ago
 <input type="text" ng-model="$ctrl.id" placeholder="please select"
               uib-typeahead="item.id as item.name for item in $ctrl.inDataSet | filter:{name: $viewValue}"
               typeahead-template-url="customInDataSet.html" class="form-control" typeahead-select-on-blur="true"
               typeahead-editable="false" typeahead-min-length="0" required />

uib-typeahead

icfantv commented 6 years ago

Closing this as this project is no longer being maintained, per the README and the ISSUE_TEMPLATE.