Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SCRIPT5022: Argument 'module' is not a function, got undefined angular.js, line 975 character 5

Tags:

angularjs

I am facing below exception in IE-8 when I am loading the angular related page. It works fine in other browsers. Any specific reason?

SCRIPT5022: Argument 'module' is not a function, got undefined 
angular.js, line 975 character 5
like image 924
Yashpal Singla Avatar asked Mar 18 '13 10:03

Yashpal Singla


1 Answers

I had this same issue (when on IE < 9) and it took me forever to track it down...

angular.module('app', ['app.directives', 'app.filters', 'app.services', ]);

Note the trailing comma after 'app.services'.

like image 73
Josh Leeming Avatar answered Sep 19 '22 05:09

Josh Leeming