I\'m trying to learn Angular by converting a piece of working jQuery/AJAX code. It\'s an activity viewer inside a table that basically displays a message with a button to \'
I think this should do what you want:
<button ng-click='activity.seen = !activity.seen'> <span>{{activity.seen ? 'Mark unread' : 'Mark read'}}</span> </button>
Fiddle