I've been attempting to integrate Angular into my ASP.NET WebAPI project. After installing angular and angular-ui-router using npm, I added all the necessary scripts to my default.html file for both development and staging/production environments.
For testing purposes, I wrote the following code:
<body ng-app="myApp">
<h1>hello</h1>
{{2+2}}
</body>
However, this code is not functioning properly and is producing the error: Error: $injector:modulerr Module Error. It seems unable to locate myApp, even though I added app.js to default.html where myApp is defined.
angular.module('myApp', [
I've also attempted using ui-view and creating a .state, but that did not solve the issue either. Strangely, the {{2+2}} expression works when only ng-app is included in the <body> tag. What am I missing here?
Thank you in advance for any assistance.