Answer the question
In order to leave comments, you need to log in
Angularstrap Typeahead value selection for ng-model, how after value selection to show property of selected object?
I use Angularstrap in the project and its Typeahead component to select a value for ng-model, how to show the property of the selected object after selecting the value, then after selecting the application gets what you need,
[{"item":{"id":"125","name":"(3217) Горка «Веселый малыш»","cost":"16061"},"count":1}]
<input type="text"
class="input-medium"
data-min-length="2"
placeholder="Введите артикул или наименование продукта"
ng-options="item as item.name for item in catalog " ng-keyup="changeProduct($index, product)"
ng-model="product.item"
bs-typeahead
/>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question