Fritz Lekschas
Member since Sep 17, 2012
- Profile: /members/10284-fritz-lekschas.htm
- Comments: 2
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 »