Basically, I'm trying to populate a select box but concatenate values from the first_name
column and last_name
column.
What I want to do (doesn't work):
<select ng-model="buyers" ng-options="b.id as (b.first_name + " " + b.last_name) for b in buyers"></select>
What does work:
<select ng-model="buyers" ng-options="b.id as b.first_name for b in buyers"></select>
s.subsidiary.sid._value_ as s.subsidiary.subsidiary_no._value_ + ' :' + s.subsidiary.subsidiary_name._value_ for s in subsidiaries
. The only difference I can see is that I did not use parentheses. Try removing them and see if it works. – Shakiashaking