title: AngularJS does not work with ASP.Net MVC Partial View loaded from clicking on a @Ajax.ActionLink()
body: <p>I want to use AngularJS with ASP.Net MVC. My problem is that AngularJS is not working in the rendered view calling from <code>@Ajax.actionLink()</code>. Here is the sample code i have tried. I have a ASP.Net MVC controller <code>index()</code> which is follows:</p>
  
  <pre><code>public ActionResult index()
  {
      return View();
  }
  </code></pre>
  
  <p>The index View which contains the <code>@Ajax.ActionLink</code>:</p>
  
  <pre><code>&lt;div&gt;
      @Ajax.ActionLink("Show Log", "ShowLog", new AjaxOptions { UpdateTargetId = "WorkArea"})
  &lt;/div&gt;
  &lt;div id="WorkArea"&gt;&lt;/div&gt;
  &lt;script src="~/App_Content/JS/jquery-1.7.2.min.js"&gt;&lt;/script&gt;
  &lt;script src="~/App_Content/JS/jquery.unobtrusive-ajax.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>The ShowLog controller:</p>
  
  <pre><code>public ActionResult ShowLog()
  {
      return View();
  }
  </code></pre>
  
  <p>Here's the main part of the <code>ShowLog()</code> View where I try to add AngularJS:</p>
  
  <pre><code>&lt;script src="~/App_Content/JS/angular.min.js"&gt;&lt;/script&gt;
  &lt;script src="~/App_Content/JS/Practical/Module.js"&gt;&lt;/script&gt;
  &lt;script src="~/App_Content/JS/Practical/MainController.js"&gt;&lt;/script&gt;
  @{
      Layout = null;
  }
  
  &lt;h3&gt;Log View&lt;/h3&gt;
  &lt;div ng-app="AgApp"&gt;
      &lt;div ng-controller="PostController"&gt;
          &lt;div&gt;{{MessageHeading}}&lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;  
  </code></pre>
  
  <p>When I run the index file the link <code>Show Log</code> is shown. When I click on it the view <code>ShowLog</code> has rendered in the workarea as expected, but inside <code>ShowLog</code> the AngularJS does not work. Why?</p>
  
  <p><a href="https://i.stack.imgur.com/HPWck.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HPWck.jpg" alt="enter image description here"></a></p>
  
  <p>Can any one help me to figure this out?</p>