I try running the index.html.It is just showing blank html page. And when i go to the debugger it says the above two errors Error: [$injector:nomod] Module 'pmapp' 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. Error: [$injector:modulerr] Failed to instantiate module pmapp due to: VillecltController is not defined # here is my code # index.html <!DOCTYPE html> <html> <head> <meta charset="ISO-8859-1"> <title>Insert title here</title> </head> <body ng-app="pmapp" ng-controller="VillecltController"> <div ng-view></div> <script type="text/javascript" src="repository/angular-1.3.15/angular.js"></script> <script type="text/javascript" src="repository/angular-1.3.15/angular-route.js"></script> <script type="text/javascript" src="repository/angular-1.3.15/angular-resource.js"></script> <script src="scripts/js/controller.js"></script> <script src="scripts/js/service.js"></script> <script src="scripts/js/villeclt.js"></script> </body> </html> # controller.js # 'use strict'; angular.module('pmapp').controller('VillecltController', function($scope, villeclts) { $scope.Allvilleclts = villeclts.query(); }); # service.js # 'use strict'; angular.module('pmapp', ['ngResource']) .factory('villeclts', function($resource) { return $resource( 'http://localhost:8080/projetForum/gestion/villeclients', {}, { query : { method : 'GET' ,isArray : true } }); }); # villeclt.js # 'use strict'; angular.module('pmapp', ['ngRoute']).config(function($routeProvider) { $routeProvider.when('/', { controller : VillecltController, templateUrl : 'scripts/js/partial.html' }); });
-- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.