Skip to content

Commit

Permalink
Use ng-repeat with a filter to show the primary email address of each…
Browse files Browse the repository at this point in the history
… contact in the list.
  • Loading branch information
Ethan Young committed Jan 5, 2014
1 parent 207b364 commit 280ef63
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Source/Web/Content/Contacts/ListContactsView.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ <h1>Contacts</h1>
</td>
<td>{{contact.FirstName}}</td>
<td>{{contact.LastName}}</td>
<td>{{contact.PrimaryEmailAddress}}</td>
<td>
<span ng-repeat="contactEmailAddress in contact.EmailAddresses | filter : { IsPrimary: true }">
{{contactEmailAddress.EmailAddress}} <span ng-show="contactEmailAddress.NickName">({{contactEmailAddress.NickName}})</span>
</span>
</td>
</tr>
</tbody>
</table>
Expand Down

0 comments on commit 280ef63

Please sign in to comment.