Skip to main content
Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.

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 »