I need to use jQuery's .unload() inside AngularJS:
My Controller
$(window).unload(someHandler());
var someHandler = function() {
console.log('handled!');
};
My View
<section ng-controller="UnloadController">
</section>
The event is fired upon unload, but for some reason it is fired on load too. I am guessing this Angular messing something up?