Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
I am the chief technical officer at InVision App, Inc - a prototyping and collaboration platform for designers, built by designers. I also rock out in JavaScript and ColdFusion 24x7.
Meanwhile on Twitter
Loading latest tweet...
Ben Nadel at cf.Objective() 2009 (Minneapolis, MN) with: Kurt Wiersma and Peter Farrell

Paul Graham

Member since May 28, 2014

Recent Blog Comments By Paul Graham

  • Capturing Document-Click Events With AngularJS

    Posted on May 29, 2014 at 8:39 PM

    @JP - the "event" object that is passed into the event handler is a standard event object. Meaning it has the typical "target" and "currentTarget" properties, etc - these are DOM elements from which you can get their IDs (although I would assume you want the ID to get t... read more »

  • Capturing Document-Click Events With AngularJS

    Posted on May 28, 2014 at 4:13 AM

    Have you considered adding something to un-bind the event on $destroy? I'm thinking of cases where you have multiple views (or nested partials or directives) and only need the document click handler in some views. In which case it might not be added to the body tag, but perhaps to a tag inside a v... read more »