title: Angular Routes and Rails Partials
body: <p>Hi have an angluar route that looks like this</p>
  
  <pre><code>app.config ($routeProvider, $locationProvider) -&gt;
    $locationProvider.html5Mode(true);
    $routeProvider.when("/",
      {
        templateUrl: "assets/pages/partials/home_controls.html"
        controller: MapCtrl
      }
    ).when("/products/business",
      {
        templateUrl: "../assets/pages/partials/business_controls.html"
        controller: MapCtrl
      }
    ).when("/products/search",
      {
        templateUrl: "../assets/pages/partials/search_controls.html"
        controller: MapCtrl
      }
    )
  </code></pre>
  
  <p>Its works really well. And loads the partials inside an </p>
  
  <p>When these pages load from the address input or page refresh they load fine</p>
  
  <p>However if I have a link controlled by a Rails view for example, it only loads the AngularJS Partial and does not change the Rails page. For example:</p>
  
  <pre><code>&lt;%= render :partial =&gt; "pages/partials/map"%&gt;
  </code></pre>
  
  <p>The Angular code is loading inside that partrial, other surrounding layouts control the Nav's etc...</p>
  
  <p>Its odd because a link to a page only loads Angular but a fresh address loads everything okay</p>