Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 0d17838

Browse files
OpherVIgorMinar
authored andcommitted
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
1 parent 890e939 commit 0d17838

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/compile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ function $CompileProvider($provide) {
172172
*
173173
* @param {string} name Name of the directive in camel-case. (ie <code>ngBind</code> which will match as
174174
* <code>ng-bind</code>).
175-
* @param {function} directiveFactory An injectable directive factory function. See {@link guide/directive} for more
175+
* @param {function|Array} directiveFactory An injectable directive factory function. See {@link guide/directive} for more
176176
* info.
177177
* @returns {ng.$compileProvider} Self for chaining.
178178
*/

0 commit comments

Comments
 (0)