title: When I remove app the code stops working
body: <p>I have the following code for angularjs working perfecly:</p>
  
  <p><a href="http://plnkr.co/edit/5XmPfQ78vRjSrxE0Tt3B?p=preview" rel="nofollow">Working fine</a></p>
  
  <p>But as soon as I use the above code without defining app I get an error and autocomplete stops working:</p>
  
  <p>here is the code with jfiddle link:</p>
  
  <pre><code>function ctrl($scope) {
  $scope.availableTags = [],
  $scope.complete = function() {
     /* return $scope.firstName + " " + $scope.lastName;*/
      availableTags= [
                            "ActionScript",
                            "AppleScript",
                            "Asp",
                            "BASIC",
                            "C",
                            "C++",
                            "Clojure",
                            "COBOL",
                            "ColdFusion",
                            "Erlang",
                            "Fortran",
                            "Groovy",
                            "Haskell",
                            "Java",
                            "JavaScript",
                            "Lisp",
                            "Perl",
                            "PHP",
                            "Python",
                            "Ruby",
                            "Scala",
                            "Scheme"
                          ];
      $(document).ajaxComplete(function(){
          $("#txt").autocomplete({
              source: $scope.availableTags,
          });
  
      });
      //return $scope.availableTags;
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Here is jfiddle link:</p>
  
  <p><a href="http://jsfiddle.net/hminaee/ozujuzvh/4/" rel="nofollow">jfiddle</a></p>
  
  <p>Can anyone tell me the reason?</p>