Skip to content

Commit 0517799

Browse files
oBuskNarretz
authored andcommitted
docs(angular.Module): improved documentation for component method
Copy improved documentation for component() method from $compileProvider and add missing object syntax. Closes angular#16547
1 parent 627180f commit 0517799

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/loader.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,8 @@ function setupModuleLoader(window) {
328328
* @ngdoc method
329329
* @name angular.Module#component
330330
* @module ng
331-
* @param {string} name Name of the component in camel-case (i.e. myComp which will match as my-comp)
331+
* @param {string|Object} name Name of the component in camelCase (i.e. `myComp` which will match `<my-comp>`),
332+
* or an object map of components where the keys are the names and the values are the component definition objects.
332333
* @param {Object} options Component definition object (a simplified
333334
* {@link ng.$compile#directive-definition-object directive definition object})
334335
*

0 commit comments

Comments
 (0)