angularjs | Sololearn: Learn to code for FREE!



hi, I'm new to angularjs. I'm trying to write a program where i can upload weather data in .xls files to an SQL database. Everything seems to work fine up until I try to load the .xls file into the database. The code errors due to issues with the javascript/angular files. The errors are: ImportData.html:7 GET http://localhost:9000/Content/bootstrap.min.css net::ERR_ABORTED ImportData.html:1 Not allowed to load local resource: file:///C:/Users/Bryan/source/repos/Weather/weather/Scripts/ImportData.js angular.js:88 Uncaught Error: [$injector:modulerr]$injector/modulerr?p0=app& at angular.js:88 at angular.js:4957 at p (angular.js:410) at g (angular.js:4917)

10/26/2017 3:23:34 AM


2 Answers

New Answer


i have the same problem


AngularJS errors are notoriously to understand. I *think* that one is usually when there is a mistake registering the module - beyond that it's sort of impossible to know where things have gone wrong... Have a look at the following: Part way down is a hello world example. Pay particular attention to the ng-app in the html, and the angular.module in the JavaScript - both strings have to match, otherwise you get an error as above. Failing that try and post a small self contained example which reproduces the problem