From 9a21050b436011693e4eb7e3ace1300a1b0fd2d4 Mon Sep 17 00:00:00 2001 From: David Bennett Date: Mon, 23 Sep 2013 21:45:48 -0400 Subject: docs(angular.Module): fix controller and directive method parameters --- src/ng/compile.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/ng/compile.js') diff --git a/src/ng/compile.js b/src/ng/compile.js index 5cd220ef..3a72db58 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -168,10 +168,11 @@ function $CompileProvider($provide) { * @description * Register a new directive with the compiler. * - * @param {string} name Name of the directive in camel-case. (ie ngBind which will match as - * ng-bind). - * @param {function|Array} directiveFactory An injectable directive factory function. See {@link guide/directive} for more - * info. + * @param {string|Object} name Name of the directive in camel-case (i.e. ngBind which + * will match as ng-bind), or an object map of directives where the keys are the + * names and the values are the factories. + * @param {function|Array} directiveFactory An injectable directive factory function. See + * {@link guide/directive} for more info. * @returns {ng.$compileProvider} Self for chaining. */ this.directive = function registerDirective(name, directiveFactory) { -- cgit v1.2.3