I am new Angular and I have to implement server-side pagination in my project, so I did everything as it has been done in this example: Server Side Pagination In Angularjs Tutorials
but I get these errors in my web browser console:
GET
http://*********/admin/css/bootstrap.min.css [HTTP/1.1 404 Not Found 1043ms]
GET
http://*********/admin/css/bootstrap-theme.min.css [HTTP/1.1 404 Not Found 1385ms]
GET
http://*********/admin/css/styles.css [HTTP/1.1 404 Not Found 1334ms]
GET
http://*********/admin/lib/angular/angular.js [HTTP/1.1 404 Not Found 1384ms]
GET
http://*********/admin/lib/dirPagination.js [HTTP/1.1 404 Not Found 1383ms]
GET
http://*********/admin/app/app.js
and
Error: [$injector:modulerr] Failed to instantiate module angularTable due to:
[$injector:nomod] Module angularTable is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
Please if anyone can help me!
this often happens when you do something like ...
angular.module('myapp').controller(function() {
});
note this code does not create a module called myapp it just references an existing module. The error you are experiencing will happen if you have not yet created the module.
To create the module do this ...
angular.module('myapp', []);
also, don't forget the ng-app directive in your HTML ...
<html ng-app="myapp">
of course, this assumes your script files are loading properly. based on your question your files are failing to load and it is therefore no surprise that myapp has not been created. you should check that the files you are trying to load actually exist on your server. also ensure you know which folder is the root folder from which your web server is serving files. This will help you to get the file paths correct.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With