In my previous post I was giving an example of using AngularJS events.

I stumbled across a corner case that might be worth noting; If a service is triggering an event on initialization, no controllers will get notified of it. Here’s an example:

The reason why this is happening is simply because the controller have not been instantiated. Setting a timer before emitting the event can be done as a workaround: Now you know!