aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOpherV2013-07-30 11:36:40 +0300
committerIgor Minar2013-08-09 10:34:26 -0700
commit864517e5a273348c81cd1504e5a7af4359a38ec7 (patch)
tree8546da76d7c079bb0f42ab442a2dd69691920a89
parent1dd5d2ec1fee5b19bd93112d640e9c4db09acf97 (diff)
downloadangular.js-864517e5a273348c81cd1504e5a7af4359a38ec7.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
-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 8b7a7674..7b0c84d6 100644
--- a/src/ng/compile.js
+++ b/src/ng/compile.js
@@ -170,7 +170,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 factroy 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.
*/