title: How can I use javascript code inside angularjs?
body: <p>I need to run this code in angularjs.</p>
  <p>When I try to execute this model function it is not running.</p>
  <p>It is not even showing alert or console.</p>
  <p>So what is the way to use this script files in angularjs</p>
  <p>Here is my code in example.html:</p>
  <pre><code>&lt;div&gt;
  {{sample}}
  &lt;/div&gt;
  &lt;div&gt;&lt;button ng-click=&quot;name()&quot;&gt;&lt;/div&gt;
  &lt;script&gt;
  function name(){
  alert(&quot;text&quot;);
  }
  &lt;/script&gt;
  </code></pre>