angular-strap
angular-strap copied to clipboard
default value of typeahead with an object array
input name="model" type="text" ng-model="data.Model" ng-options="ymm.Model as ymm.Model for ymm in getModels($viewValue)" bs-typeahead autocomplete="off"
the above control works fine for typing in. But if data.Model already has a default value, the input box shows blank. but if change the ng-options to ymm for ymm in getModels($viewValue), where getModels returns a string array, then works.
duplicate of https://github.com/mgcrea/angular-strap/issues/1167
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.