Skip to main content

Fritz Lekschas

Member since Sep 17, 2012

Recent Blog Comments By Fritz Lekschas

  • Capturing Document-Click Events With AngularJS

    Posted on Sep 18, 2012 at 10:02 AM

    @Ben, Yes basically it's the same. :) I just wanted to point out that you don't need $document and $parse. And when u rely on angulars internal bind method you also don't need to manually digest. Nevertheless I guess this only makes minor differences in performance. Best Fritz... read more »

  • Capturing Document-Click Events With AngularJS

    Posted on Sep 17, 2012 at 3:20 PM

    Why don't you just create a micro directive and capture the click with angulars bind method? I would use something like this: .directive('globalEvents', function(News) { return function(scope, element, attrs) { element.bind('click', function(e){ // Do something }) } }) and add th... 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