implement two-way binding if the checkbox has an ng-model attribute