consider the following:
<ul class="contracts">
<li ng-repeat="contract in contracts" class="thumbnail">
<h3>ID:{{contract.Id}}</a></h3>
<h4>Owner: {{contract.Person.firstName}} {{contract.Person.lastName}}</h4>
</li>
</ul>
ok, that works, I can display the owner by concatenating the firstName and the lastName. However, it'd be better to have a property FullName somewhere. That property would either return firstname + lastname or 'None' if Person is null.
My problem is that I don't know where to add this property. It feels strange to add it to the contract controller, as it's more related to the Person. But I don't have a Person controller. What would be the approach for this ?