Finally, I have no error but my problem i can't access
angular.module('pmapp', ['ngRoute'])
.config(function($routeProvider) {
console.log("Provider-3");
$routeProvider.when('/', {
controller : VillecltController,
templateUrl : 'scripts/js/partial.html'
});
2015-04-23 8:36 GMT+01:00 Sander Elias <[email protected]>:
> Hi Renard,
>
> You are doing this: `angular.module('pmapp')` before you define your
> module like this `angular.module('pmapp', ['ngRoute'])`
> This is not possible, an module must be created, before you can reuse it.
> This is one of the few things in angular where loading order matters.
>
> Regards
> Sander
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "AngularJS" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/angular/kgjhTDrD6og/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.