+ 1

angularjs

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] http://errors.angularjs.org/1.6.5/$injector/modulerr?p0=app&p1=Error%3A%20%5B%24injector%3Anomod%5D%20http%3A%2F%2Ferrors.angularjs.org%2F1.6.5%2F%24injector%2Fnomod%3Fp0%3Dapp%0A%20%20%20%20at%20https%3A%2F%2Fcdnjs.cloudflare.com%2Fajax%2Flibs%2Fangular.js%2F1.6.5%2Fangular.min.js%3A7%3A76%0A%20%20%20%20at%20https%3A%2F%2Fcdnjs.cloudflare.com%2Fajax%2Flibs%2Fangular.js%2F1.6.5%2Fangular.min.js%3A26%3A408%0A%20%20%20%20at%20b%20(https%3A%2F%2Fcdnjs.cloudflare.com%2Fajax%2Flibs%2Fangular.js%2F1.6.5%2Fangular.min.js%3A25%3A439)%0A%20%20%20%20at%20https%3A%2F%2Fcdnjs.cloudflare.com%2Fajax%2Flibs%2Fangular.js%2F1.6.5%2Fangular.min.js%3A26%3A182%0A%20%20%20%20at%20https%3A%2F%2Fcdnjs.cloudflare.com%2Fajax%2Flibs%2Fangular.js%2F1.6.5%2Fangular.min.js%3A42%3A290%0A%20%20%20%20at%20p%20(https%3A%2F%2Fcdnjs.cloudflare.com%2Fajax%2Flibs%2Fangular.js%2F1.6.5%2Fangular.min.js%3A8%3A7)%0A%20%20%20%20at%20g%20(https%3A%2F%2Fcdnjs.cloudflare.com%2Fajax%2Flibs%2Fangular.js%2F1.6.5%2Fangular.min.js%3A42%3A138)%0A%20%20%20%20at%20gb%20(https%3A%2F%2Fcdnjs.cloudflare.com%2Fajax%2Flibs%2Fangular.js%2F1.6.5%2Fangular.min.js%3A46%3A251)%0A%20%20%20%20at%20c%20(https%3A%2F%2Fcdnjs.cloudflare.com%2Fajax%2Flibs%2Fangular.js%2F1.6.5%2Fangular.min.js%3A22%3A19)%0A%20%20%20%20at%20Uc%20(https%3A%2F%2Fcdnjs.cloudflare.com%2Fajax%2Flibs%2Fangular.js%2F1.6.5%2Fangular.min.js%3A22%3A332) at angular.js:88 at angular.js:4957 at p (angular.js:410) at g (angular.js:4917)

26th Oct 2017, 3:23 AM
bsayles
2 Answers
0
i have the same problem
24th May 2018, 11:01 AM
Ghanshyam Saini
Ghanshyam Saini - avatar
0
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: https://docs.angularjs.org/guide/module 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
8th Jan 2020, 7:25 PM
Simon Castro
Simon Castro - avatar