title: AngularJS with Entity Framework Core throws an error
body: <p>Trying to run AnglarJS on my website just executing simple $scope variable and cannot get it to work and throwing errors (image attached). Seems simple but I tried everything, correct me if I am missing any statement. Using VS Code, Entity Framework Core. Page renders perfect.</p>
  
  <p><strong>Index.cshtml</strong></p>
  
  <pre><code>&lt;head&gt;
  @section scripts{
  &lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular-resource.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular-route.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular-animate.js"&gt;&lt;/script&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"&gt;&lt;/script&gt;
  
  &lt;script src="~/SPA/pController.js"&gt;&lt;/script&gt;
  &lt;script src="~/SPA/app.js"&gt;&lt;/script&gt;
  }
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;div ng-app="app" ng-controller="pController"&gt;
  
  &lt;p{{ word }} /p&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>app.js</strong></p>
  
  <pre><code>var app = angular.module('app', ['ngRoute']);
  </code></pre>
  
  <p>app.controller('pController', pController);</p>
  
  <p><strong>pController.js</strong></p>
  
  <pre><code>    var pController =  function($scope){
      $scope.data = null;
      $scope.word = "hello world";
  };
  pController.$inject = ['$scope'];
  </code></pre>
  
  <p>RESULT: </p>
  
  <p><a href="https://i.stack.imgur.com/BCYmp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BCYmp.png" alt="result"></a>
  <a href="https://i.stack.imgur.com/3EAsE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3EAsE.png" alt="enter image description here"></a></p>
  
  <p><strong>UDPATE</strong></p>
  
  <p>Figured something, system cannot find the app.js file. Pasting all the code in html all works.</p>
  
  <p><strong>SOLVED</strong></p>
  
  <p>After a day spent on this problem, I solved it simply putting all my js Angular logic into /wwwroot/js/... I think somehow my project only read js files from that path. Thank you everyone for help!</p>