<span ng-click="resetbyTask() || filterTask(task.id, $index)">{{ task.total }}</span>
I am trying to toggle between fucntions in a single ng-click
so that the first click will run filterTask()
and when clicked again it will run resetbyTask
<span ng-click="resetbyTask() || filterTask(task.id, $index)">{{ task.total }}</span>
I am trying to toggle between fucntions in a single ng-click
so that the first click will run filterTask()
and when clicked again it will run resetbyTask
Try this :
HTML :