title: why angular gives function not a function, undefined error (Works fine when I change the CDN version)
body: <p>I'm new to MEAN stack technology and building a testing app. I'm using angulrjs as follow.</p>
  
  <pre><code>&lt;!DOCTYPE&gt;
  &lt;html ng-app&gt;
  &lt;head&gt;
      &lt;!-- Latest compiled and minified CSS --&gt;
  &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"&gt;
  
  &lt;!-- Optional theme --&gt;
  &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css"&gt;
      &lt;title&gt;contact lists app&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div class="container" ng-controller="AppCtrl"&gt;
  &lt;h1&gt;Contact List app&lt;/h1&gt;
  &lt;table class="table"&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;Name&lt;/th&gt;
              &lt;th&gt;Email&lt;/th&gt;
              &lt;th&gt;Number&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
  &lt;/table&gt;
  
  &lt;/div&gt;
  &lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.min.js"&gt;&lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
  function AppCtrl(){
    console.log("testing");
  }
  &lt;/script&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>while this running in the server, I looked for console in the browser.then it show following error</p>
  
  <p><a href="https://i.stack.imgur.com/tcxx4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tcxx4.png" alt="enter image description here"></a></p>
  
  <p>and the link description was </p>
  
  <p><a href="https://i.stack.imgur.com/OloUY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OloUY.png" alt="enter image description here"></a></p>
  
  <p>before I add this, angular works fine and didn't show any error.hope your help with this.thanx</p>
  
  <p><strong>NOTE : I tried by adding a custom js file in different folder, it also didn't work</strong></p>
  
  <p><strong>NOTE:I'M USING GOOGLE CDN TO WORK WITH ANGULAR.IN HERE I HAVE USED LATEST VERSION, WHICH THEY ARE PROVIDING.BUT IF I USED PREVIOUS VERSION LIKE :</strong></p>
  
  <pre><code>&lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.28/angular.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p><strong>THEN IT WORKS FINE.</strong></p>