title: I'm implementing on-the-fly dashboards in AngularJS
body: <p>Can I implement something like:</p>
  
  <pre><code>    $scope.showDashboard = function () {
          $scope.dashboardPath = "/Widgets/Weather/View.htm";
          $scope.widgetController = 30;
  
          require(['/Widgets/Weather/Controller.js'], function (w) {               
              whatShouldIputHere = w;
          });
  
  
      };
  
  
   &lt;div ng-include src="dashboardPath" ng-controller="whatShouldIputHere?"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Is it possible to assign a controller to ng-include dynamically?</p>
  
  <p>There could be many widgets on the dashboard</p>