title: .config, .run, AppCtrl - where to put routes?
body: <p>I wanted to find out the difference between the <code>.config</code> and <code>.run</code> functions in AngularJS. I was using my <code>.config</code> for setting up routes, but I did have some <code>$on</code>'s for watching route change start and success events.</p>
  
  <p>I then moved some of this code to <code>.run</code> as I was having some dependency injection problems in <code>.config</code>.</p>
  
  <p>I finally moved some of this to a <code>CommonAppController</code> which I have set on my <code>&lt;body&gt;</code>.</p>
  
  <p>I also had 2 <code>.config</code>'s and it seemed to be running ok, but surely this isn't right?</p>
  
  <p>Can anyone give a little insight on which method to use?</p>