title: Uncaught ReferenceError: angular is not defined (anonymous function)
body: <p>I am trying to test an example with AngularJS to evaluation expressions but  an error is show:  'Uncaught ReferenceError: angular is not defined' (anonymous function)
  i have two files :  index.html and expression.js
  index.html:</p>
  
  <pre><code>&lt;script src="/home/mohamed/Desktop/AngularJS/expression.js"&gt;&lt;/script&gt;
           &lt;script src="/home/mohamed/Desktop/AngularJS/angular.min.js"&gt;&lt;/script&gt;
  
  
  &lt;div ng-controller="ExampleController" class="expressions"&gt;
    Expression:
    &lt;input type='text' ng-model="expr" size="80"/&gt;
    &lt;button ng-click="addExp(expr)"&gt;Evaluate&lt;/button&gt;
    &lt;ul&gt;
     &lt;li ng-repeat="expr in exprs track by $index"&gt;
       [ &lt;a href="" ng-click="removeExp($index)"&gt;X&lt;/a&gt; ]
       &lt;code&gt;{{expr}}&lt;/code&gt; =&gt; &lt;span ng-bind="$parent.$eval(expr)"&gt;&lt;/span&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>expression.js : </p>
  
  <pre><code>angular.module('expressionExample', []).controller('ExampleController', ['$scope', function($scope) {
    var exprs = $scope.exprs = [];
    $scope.expr = '3*10|currency';
    $scope.addExp = function(expr) {
      exprs.push(expr);
    };
  
    $scope.removeExp = function(index) {
      exprs.splice(index, 1);
    };
  }]);
  </code></pre>