I want to listen to the window events in my AngularJS service so that I can broadcast them to my controllers.
I have a Chrome extension which sends any message using
Do you inject that service somewhere? Services will run only if you really injects them.
Additionally, it's better to use $window instead of window, so you'll be able to mock it later in your tests.