Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which JavaScript file is the angular.module() function defined in?

Tags:

angularjs

I was wondering if anybody knows which file the angular.module() function is defined in. I ask because when I type "angular." My IDE's auto-complete feature does not show the module method on the angular object.

like image 945
Tonte Pouncil Avatar asked Jul 23 '26 16:07

Tonte Pouncil


1 Answers

Regarding the files in which the .module() is defined:

  • in the build version it is the main angular.js file (corresponding to the ngModule): http://code.angularjs.org/1.0.2/angular.js, check the line 1052
  • in the source code it is here: https://github.com/angular/angular.js/blob/master/src/loader.js#L67

You might want to search for the function module(name, requires, configFn) string to locate it in your version of AngularJS.

like image 106
pkozlowski.opensource Avatar answered Jul 25 '26 05:07

pkozlowski.opensource



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!