title: AngularJS - How to refer to a submodule controller from ui-router?
body: <p>I'm struggling a bit with having submodules in an Angular 1.3.9 app. I've got a (non-working, sorry) preview at <a href="http://plnkr.co/edit/XBfTPAGRRe0CWJgjGJzc?p=preview" rel="nofollow">http://plnkr.co/edit/XBfTPAGRRe0CWJgjGJzc?p=preview</a> and I think it's freaking out, in part, because I'm using Restangular.</p>
  
  <p>I have the following:</p>
  
  <pre class="lang-js prettyprint-override"><code>angular
      .module('estimate', ['ui.router', 'restangular', 'estimate.project'])
  ;
  
  angular
  .module('estimate.project', ['ui.router'])
  .config(['$stateProvider', '$urlRouterProvider', '$locationProvider'
          , function($stateProvider, $urlRouterProvider, $locationProvider) {
  
      $stateProvider
         .state('project', {
              url: "/project/{id:int}",
              abstract: true,
              templateUrl: '/app/templates/project.html',
              controller: "ProjectController as project", 
              resolve: { // stuff }
          })
          .state('project.overview', {
              url: "",
              templateUrl: "/app/templates/overview.html"
          })
          // ...
      ;
  }])
  .controller('ProjectController', ['$scope', 'ProjectService', 'myProject'
            , function($scope, ProjectService, myProject) {
  
      console.log('i made it!');
  
  }]);
  </code></pre>
  
  <p>And in my template, which is served from the <code>estimate</code> module, I have:</p>
  
  <pre><code>&lt;li&gt;&lt;a ui-sref="project.overview({ id: 1 })"&gt;One&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  
  <p>The URL resolves correctly on the page, but clicking on it does nothing. It doesn't even throw any console errors - it just sits there. My gut tells me it has to do with how I'm referring to the controllers and/or the routes, and if they need to be prefixed or modified to work with a submodule. Any ideas on how to get it to load properly?</p>
  
  <p>If this post is too scatterbrained, let me know and I'll try to clean it up.</p>