Skip to content

Commit f3bf5a6

Browse files
matthewjhgkalpak
authored andcommitted
docs(angular-mocks): clarify angular.mock.module usage with objects
Closes angular#12354
1 parent 995abf2 commit f3bf5a6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ngMock/angular-mocks.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -2510,8 +2510,9 @@ if (window.jasmine || window.mocha) {
25102510
* @param {...(string|Function|Object)} fns any number of modules which are represented as string
25112511
* aliases or as anonymous module initialization functions. The modules are used to
25122512
* configure the injector. The 'ng' and 'ngMock' modules are automatically loaded. If an
2513-
* object literal is passed they will be registered as values in the module, the key being
2514-
* the module name and the value being what is returned.
2513+
* object literal is passed each key-value pair will be registered on the module via
2514+
* {@link auto.$provide $provide}.value, the key being the string name (or token) to associate
2515+
* with the value on the injector.
25152516
*/
25162517
window.module = angular.mock.module = function() {
25172518
var moduleFns = Array.prototype.slice.call(arguments, 0);

0 commit comments

Comments
 (0)