It took me one day to make it works so I think my experience may be useful from someone. And maybe some others will find improvement.
So I start angularJS two days a
I used a solution similar to willlma, but my application makes use of UI Router, so there's no knowing which controller will be called.
I was able to solve this with a Javascript Promise.