From e281ef892bf5b477d1f33b0e5c663ef352b854ac Mon Sep 17 00:00:00 2001 From: OpherV Date: Tue, 30 Jul 2013 11:36:40 +0300 Subject: [PATCH] Update documentation to allow for minifcation-safe usage of directives to pass validation To avoid "Argument type Array is not assignable to parameter type function" validation error When using the minifcation-safe array style (eg .directive('myDirective', ['$http','$timeout','$compile', function($http,$timeout $compile).... ) --- src/ng/compile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ng/compile.js b/src/ng/compile.js index 5b12883dc412..b9909ccdc0c7 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -172,7 +172,7 @@ function $CompileProvider($provide) { * * @param {string} name Name of the directive in camel-case. (ie ngBind which will match as * ng-bind). - * @param {function} directiveFactory An injectable directive factory function. See {@link guide/directive} for more + * @param {function|Array} directiveFactory An injectable directive factory function. See {@link guide/directive} for more * info. * @returns {ng.$compileProvider} Self for chaining. */