Ok, found it!!
I have an /app.js with the router where I define the application:
angular.module("iShareApp", ["ngRoute"])
.config(["$routeProvider", .....
[code]
Then I defined a directive in directive.js:
angular.module("iShareApp",[])
.directive("waiting",["$rootScope",...
[code]
Oops.. here iShareApp is defined again! Removed the ,[] part so everything
works again.
Points taken:
- Never redefine the app; ;)
- If Angular does not know a module (as in "Error: [ng:areq] Argument
'navbarController' is not a function, got undefined") that you _know_ is
defined, included and not misspelled it is right: in the _redefined_
application it is unknown.
Marc
--
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/groups/opt_out.