I'm attempting to perform two operations on ng-click. Currently it is performing one. On my javascript side, I have a variable totalMoviesWatched I'd like to increment on ng-click as well.
<tr ng-repeat="movie in MovieDB.movies" ng-show="movie.Response == 'True'" ng-class="{ 'strikeout': movie.watched }" >
<td><a ng-click="movie.watched = true"><span class="glyphicon glyphicon-ok" aria-hidden="true" ng-hide="movie.watched"></span></a></td>
So, something like:
<a ng-click="movie.watched = true, totalMoviesWatched += 1">
??
Thanks!