title: Angular Scope inside script
body: <p>Can we use the angular variables defined in scope inside script tag like below.</p>
  
  <p>HTML CODE:</p>
  
  <pre><code>&lt;div ng-controller="AngularCtrl"&gt;
   &lt;script&gt;
    alert($scope.user_name);
   &lt;/script&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>JS CODE:</p>
  
  <pre><code>function AngularCtrl($scope){
   $scope.user_name = 'John';
  }
  </code></pre>
  
  <p>I just get '$scope is not defined'. Can someone help me with what i am doing wrong here?</p>