title: $routeProvider - injecting controller dependencies depending on URL
body: <p>Consider the code:</p>
  
  <pre><code>var app = angular.module("app", [], function($routeProvider) {
    $routeProvider
      .when("/page1", { controller: "MyController" })
      .when("/page2", { controller: "MyController" })
      .when("/page3", { controller: "MyController" });
  });
  
  app.factory("StrategyOne", function() {...});
  app.factory("StrategyTwo", function() {...});
  app.factory("StrategyThree", function() {...});
  
  app.controller("MyController", function(Strategy, $scope) {...});
  </code></pre>
  
  <p>Depending on URL, I want either <code>StrategyOne</code>, or <code>StrategyTwo</code>, or <code>StrategyThree</code> to be injected, when constructing <code>MyController</code>. A pseudo-code to illustrate the idea:</p>
  
  <pre><code>var app = angular.module("app", [], function($routeProvider) {
    $routeProvider
      .when("/page1", { controller: "MyController", Strategy: "StrategyOne" })
      .when("/page2", { controller: "MyController", Strategy: "StrategyTwo" })
      .when("/page3", { controller: "MyController", Strategy: "StrategyThree" });
  });
  </code></pre>
  
  <p>Any change I can achieve something like this with AngularJS?</p>