title: Angular ng-include cshtml page
body: <p>Im fighting with angular to make it ng-include a partial cshtml view outside of ng-view. </p>
  
  <p>here is my main view:</p>
  
  <pre><code>&lt;div class="container"&gt;
      &lt;div class="header"&gt;
          &lt;div class="loginView"&gt;
              &lt;div ng-include="Home/Template/login"&gt;&lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="container"&gt;
      &lt;div ng-view&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>here is my partial Login.cshtml:</p>
  
  <pre><code>&lt;form name="login" ng-controller="LoginCtrl" class="form-inline"&gt;
      &lt;div class="form-group"&gt;&lt;input type="text" name="loginName" class="form-control input-sm" placeholder="Brugernavn" oninvalid="this.setCustomValidity('Indtast brugernavn')" ng-model="UserData.LoginName" ng-required="true"&gt;&lt;/div&gt;
      &lt;div class="form-group"&gt;&lt;input type="text" name="password" class="form-control input-sm" placeholder="Kodeord" oninvalid="this.setCustomValidity('Indtast kodeord')" ng-model="UserData.Password" ng-required="true"&gt;&lt;/div&gt;
      &lt;div class="form-group"&gt;
          &lt;button class="btn btn-primary btn-sm" ng-click="Login()" ng-disabled="login.password.$error.required || login.loginName.$error.required"&gt;Login&lt;/button&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>im using mvc to return specific partial views on calls to url like this: </p>
  
  <pre><code>   public ActionResult Template(string id)
      {
          switch (id.ToLower())
          {
              case "login":
                  return PartialView("~/Views/Account/Partials/Login.cshtml");
              case "register":
                  return PartialView("~/Views/Account/Partials/Register.cshtml");
              case "main":
                  return PartialView("~/Views/Main/MainPage.cshtml");
              default:
                  throw new Exception("template not known");
          }
      }
  </code></pre>
  
  <p>basicly i would belive that ng-include should call url which will return html to which will be inculded on a page. But thats not what happend, Template method is not called at all. I could ofcourse include whole template on master page, but later on after login i want to replace this template with logged in user data template. </p>
  
  <p>Any idea how to fix this? </p>