diff options
Diffstat (limited to 'src/ng/compile.js')
| -rw-r--r-- | src/ng/compile.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ng/compile.js b/src/ng/compile.js index 735e053a..c49fbe28 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -170,10 +170,11 @@ function $CompileProvider($provide) { * @description * Register a new directive with the compiler. * - * @param {string} name Name of the directive in camel-case. (ie <code>ngBind</code> which will match as - * <code>ng-bind</code>). - * @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. <code>ngBind</code> which + * will match as <code>ng-bind</code>), 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) { |
