call handlers within scope.$apply so model changes are detected by Angular
Merge pull request #2 from mdr/master

call handlers within scope.$apply so model changes are detected by Angular