angular-strap icon indicating copy to clipboard operation
angular-strap copied to clipboard

default value of typeahead with an object array

Open DealerCorp opened this issue 12 years ago • 2 comments

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.

DealerCorp avatar Oct 30 '14 22:10 DealerCorp

duplicate of https://github.com/mgcrea/angular-strap/issues/1167

DealerCorp avatar Oct 30 '14 22:10 DealerCorp

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.

lock[bot] avatar Jan 26 '19 14:01 lock[bot]