title: ng-include and ngRoute: how to make them work together? (i.e. route to a view wihin a ng-include)
body: <p>[<strong>EDITED</strong>] My app has the following structure:</p>
  
  <p><strong>index.html</strong></p>
  
  <pre><code>&lt;body ng-app = "myApp" ng-controller ="mainController"&gt;
      &lt;ng-view&gt;&lt;/ng-view&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p><strong>mainView.html</strong> (loaded into ng-view through <strong>routeProvider</strong> in app.js)</p>
  
  <pre><code>&lt;div ng-include src="subview1"&gt;
  &lt;div ng-include src="subview2"&gt;
  </code></pre>
  
  <p><strong>subview1</strong> and <strong>subview2</strong> are set within <strong>mainController</strong> (mainView's controller) as scope variables:</p>
  
  <pre><code>$scope.subview1= "templates/subview1.html";
  $scope.subview2= "templates/subview2.html";
  </code></pre>
  
  <p><strong>controller1</strong> and <strong>controller2</strong> are <strong>subview1</strong> and <strong>subview2</strong>'s controllers.</p>
  
  <p><strong>subview1.html</strong> (loaded in first div of mainView)</p>
  
  <pre><code> &lt;div ng-controller="controller1"&gt;
      &lt;button ng-click="loadNewView()"&gt;&lt;/button&gt;
   &lt;/div&gt;
  </code></pre>
  
  <p><strong>controller1.js</strong></p>
  
  <pre><code>.controller('controller1', function($scope){
       $scope.loadNewView = function(){
              $scope.$parent.subview1 = "templates/view3.html";
       }
  }
  </code></pre>
  
  <p><strong>scope.loadNewView</strong> should load a different view (and relative controller) within the div with <strong>src="subview1"</strong> in <strong>mainView.html</strong>). Basically it's about refreshing the view itself by raplacing it with another view (and related controller). </p>
  
  <p>I use <strong>$parent</strong> to update the view in <strong>subview1</strong>'s parent view (i.e. <strong>mainView</strong>).</p>
  
  <p>however nothing happens and if I try to use <strong>$scope.$apply()</strong> I get <strong>error (digest already in progress)</strong>.</p>
  
  <p>Any clue?</p>