title: Waiting for all controllers to load during run method
body: <p>I need to do a broadcast when the page loads. The problem is that the controller never catches the broadcast (my guess is that this is because it hasn't been properly loaded). I have done some research on how to wait for the controllers to be loaded and I've found that I can get a list with all loaded controllers with something like this:</p>
  
  <pre><code>searchApp.controller()._invokeQueue
  </code></pre>
  
  <p>If I put a breakpoint in the script in the module/controller (the result is roughly the same) I get a list that contains the <code>$injector</code>, factory methods - <code>broadcast</code> and the <code>directives</code>. Even if I am in the controller <code>_invokeQueue</code> doesn't contain my controllers.</p>
  
  <p>So how can I wait for the controllers to properly load or get the list of loaded controllers?</p>