I build a dropdown directive, and it work with a different objects types, each object has own particular atributes, i need to get some particular field inside a ng-repat of my dropdown, now, it's fixed cityName, how i can change cityName for a variable, which stay on controller?
<div class="listCombo" ng-show="showDrop" ng-mouseleave="lostFocus()">
<table>
<tr ng-repeat="result in results" ng-click="selectItem(result)">
<td> {{result.cityName}} </td>
</tr>
</table>
</div>
For example, i need to get peopleName rather than cityName.
td?