You can call a function conditionally only when checking the checkbox:
<input type="checkbox" ng-change="!checkAnswer || answerSelected(ans)" ng-model="checkAnswer">{{ans.answer}}
When the checkbox is set, checkAnswer will evaluate to true, and the function will be called.
If unchecked, checkAnswer will evaluate to false and the function will not be called.
Here plunker
source share