title: javascript codes aren't executed when including page
body: <p>I included some page in my angularjs-based page like this:</p>
  
  <pre><code>&lt;div data-ng-include src="includehtml"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>JS:</p>
  
  <pre><code>$scope.selectImage = function(id) {$scope.includehtml = id;}
  </code></pre>
  
  <p>(I send html file address as a parameter when calling the function selectImage() Like the bellow code)</p>
  
  <pre><code>&lt;a href="javascript:void(0)" data-ng-click="selectImage('lists/1.html');"&gt;&lt;/a&gt;
  </code></pre>
  
  <p>In the end of file 1.html, I've a javascript internal code. That code isn't executed when I include 1.html file via clicking on the link (The link that sends file url to function selectImage() )</p>
  
  <p>I want to know how can I change my code to execute the javascript code?</p>