The following code will do the option name to the id.
<select ng-model="vm.ships" ng-change="vm.updateShip()" data-ng-options="ship as ship._id for ship in vm.readyships">
Q: How can i make the name something to be "ship ship.id
is ready ( ship.to
) " ?
is that even possible to do with ng-options?
wanted result:
<option value="0" selected="selected" label="57e261">ship 57e261 is ready (sweden) </option>
UPDATE:
variable ship.to
is avaliable