title: Load controller dynamically based on route group
body: <p>Is it possible to load a controller, it's js file, and a template dynamically based on a route group? Psuedo code which doesn't work:</p>
  
  <pre><code>$routeProvider.when('/:plugin', function(plugin) {
    templateUrl: 'plugins/' + plugin + '/index.html',
    controller: plugin + 'Ctrl',
    resolve: { /* Load the JS file, from 'plugins/' + plugin + '/controller.js' */ }
  });
  </code></pre>
  
  <p>I've seen a lot of questions like this one but none that loads the js file/controller based on a route group.</p>