From a165c6930273169450634ae369d04c8b7c8c71cd Mon Sep 17 00:00:00 2001 From: Oscar Busk Date: Thu, 3 May 2018 13:17:52 +0200 Subject: [PATCH] docs(angular.Module): improved documentation for component method Copy improved documentation for component() method from $compileProvider and add missing object syntax. --- src/loader.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/loader.js b/src/loader.js index ba932f2e8d38..00e943ff301e 100644 --- a/src/loader.js +++ b/src/loader.js @@ -328,7 +328,8 @@ function setupModuleLoader(window) { * @ngdoc method * @name angular.Module#component * @module ng - * @param {string} name Name of the component in camel-case (i.e. myComp which will match as my-comp) + * @param {string|Object} name Name of the component in camelCase (i.e. `myComp` which will match ``), + * or an object map of components where the keys are the names and the values are the component definition objects. * @param {Object} options Component definition object (a simplified * {@link ng.$compile#directive-definition-object directive definition object}) *