Answer the question
In order to leave comments, you need to log in
Why is the full item written in ng-model and not item.value?
Here is the code in view
<select ng-model="mode" ng-options="item.display for item in options track by item.value"></select>
$scope.options =
[{ display: "Таблица", value: "table" },
{ display: "Список", value: "list" },
{ display: "Список с маркерами", value: "budges" }];
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