最佳答案
基本上,我尝试填充一个选择框,但是连接来自 first_name
列和 last_name
列的值。
我想做的(不起作用) :
<select ng-model="buyers" ng-options="b.id as (b.first_name + " " + b.last_name) for b in buyers"></select>
什么管用:
<select ng-model="buyers" ng-options="b.id as b.first_name for b in buyers"></select>