Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit de2a56b

Browse files
matthewjhpetebacondarwin
authored andcommitted
docs(angular-mocks): clarify angular.mock.module usage with objects
Closes #12354
1 parent 55ad192 commit de2a56b

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
@@ -2271,8 +2271,9 @@ if (window.jasmine || window.mocha) {
22712271
* @param {...(string|Function|Object)} fns any number of modules which are represented as string
22722272
* aliases or as anonymous module initialization functions. The modules are used to
22732273
* configure the injector. The 'ng' and 'ngMock' modules are automatically loaded. If an
2274-
* object literal is passed they will be registered as values in the module, the key being
2275-
* the module name and the value being what is returned.
2274+
* object literal is passed each key-value pair will be registered on the module via
2275+
* {@link auto.$provide $provide}.value, the key being the string name (or token) to associate
2276+
* with the value on the injector.
22762277
*/
22772278
window.module = angular.mock.module = function() {
22782279
var moduleFns = Array.prototype.slice.call(arguments, 0);

0 commit comments

Comments
 (0)