title: How does Angular router know where to route URLs to when they are buried in dependencies?
body: <p>In the <a href="https://github.com/angular-app/angular-app" rel="nofollow">Sample Angular App</a></p>
  
  <p>For example, in one <a href="https://github.com/angular-app/angular-app/blob/master/client/src/app/projectsinfo/projectsinfo.js#L3" rel="nofollow">obscure module of the app, there is a route</a> like:</p>
  
  <pre><code>$routeProvider.when('/projectsinfo', {
      templateUrl:'projectsinfo/list.tpl.html',
      controller:'ProjectsInfoListCtrl',
      resolve:{
        projects:['Projects', function(Projects){
          return Projects.all();
        }]
      }
    }); 
  </code></pre>
  
  <p>I have two questions about this:</p>
  
  <p>1) How does Angular locate this path and put it together with its registry of other paths? Is it because the same <code>$routeProvider</code> is used?
  2) Is this a bad coding practice - i.e. putting routes in different modules? Are there advantages to doing it?</p>
  
  <p>I would love if someone could enlighten me. I am just starting out with Angular.</p>