Skip to main content

Nick Barton

Member since Nov 9, 2012

Recent Blog Comments By Nick Barton

  • Capturing Document-Click Events With AngularJS

    Posted on Nov 9, 2012 at 9:20 AM

    You don't need a directive at all to achieve this. Simply add jquery click event into the controller, update the $scope.mouseX and $scope.mouseY from the jquery event values then call $scope.$apply(). Like this... var Demo = angular.module( "Demo", [] ); Demo.controller("DemoControl... read more »

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel