title: How to reload AngularJS partial template?
body: <p>In my app, main template has a drop-down list of months (Jan, Feb ...).</p>
  
  <p>The main template contains an <code>ng-view</code>, loaded with partial templates using <code>routeProvider</code>.</p>
  
  <p>How do I refresh the <code>ng-view</code> (by re-running its controller) from main template's controller?</p>
  
  <p>So that partial template content will refresh when user switches to a different month.</p>
  
  <p>Main template HTML:</p>
  
  <pre><code>....
  &lt;body class="" ng-controller="Main"&gt;
      &lt;div ng-view&gt;&lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Route provider:</p>
  
  <pre><code>....
  .config([ '$routeProvider', function($route) {
    $route.when('/module/:module', {
      templateUrl : 'partial/module.html',
      controller : Module
    }).otherwise({
      templateUrl : 'partial/dashboard.html',
      controller : Dashboard
    });
  } ]);
  </code></pre>
  
  <p>Main controller:</p>
  
  <pre><code>function Main($scope, $cookies) {
      ...switch month and ajax...
      // Reload ng-view goes here
  }
  </code></pre>