aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOpherV2013-07-30 11:36:40 +0300
committerIgor Minar2013-08-09 10:32:27 -0700
commit0d17838a0881376be3c226a68242b5d74dac208b (patch)
tree7bf8ca900364d0ca1d5cc2dde0c142517f17bfe0 /src
parent890e939fcc0e059b66a4868853d82e23fbc68ac3 (diff)
downloadangular.js-0d17838a0881376be3c226a68242b5d74dac208b.tar.bz2
docs($compile): update directive type signature
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).... ) Closes #3392
Diffstat (limited to 'src')
-rw-r--r--src/ng/compile.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ng/compile.js b/src/ng/compile.js
index 59754ee3..b07a47e1 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 <code>ngBind</code> which will match as
* <code>ng-bind</code>).
- * @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.
*/