title: Deporting/moving UI router's resolve functions definitions outside of the state definitions
body: <p>As of now, I have placed all my state's definitions within a single <code>app.js</code> file. I quite like it because I can see all my states at a glance.</p>
  
  <p>However I plan to add a number of resolve functions to each of my states as shown below.</p>
  
  <pre><code>.config(['$stateProvider', '$urlRouterProvider', '$httpProvider', function ($stateProvider, $urlRouterProvider, $httpProvider) {
   $stateProvider
    .state('authenticated', {
                  url: '/:memberType',
                  abstract: true,
                  template: '&lt;ui-view /&gt;',
                  resolve: {
                      memberType: ['$rootScope', '$q', function ($rootScope, $q) {
                          return $rootScope.globals.memberType || $q.reject({unAuthorized: true});
                      }],
                      currentMember: ['$rootScope', '$q', function ($rootScope, $q) {
                          return $rootScope.globals.authenticated || $q.reject({unAuthorized: true});
                      }]
                  }
              })
     ...
  </code></pre>
  
  <p>The issue I have is that my resolve functions are going to be quite large and my <code>app.js</code> file is going to grow out of proportions.</p>
  
  <p>I would therefore like to deport/move the resolve functions definitions outside of my <code>app.js</code> file but keep the states within the same unique file. Is this possible? If so how?</p>
  
  <p>I would ideally end up with something like this:</p>
  
  <pre><code>.state('authenticated', {
                  url: '/:memberType',
                  abstract: true,
                  template: '&lt;ui-view /&gt;',
                  resolve: {
                      memberType: something??,
                      currentMember: something else??
                  }
              })
  </code></pre>
  
  <p>with <code>something</code> and <code>something else</code> pointing to function definitions defined externally.</p>
  
  <p>Can someone please help or provide an alternative best practice?</p>