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

Commit 864517e

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 1dd5d2e commit 864517e

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
@@ -170,7 +170,7 @@ function $CompileProvider($provide) {
170170
*
171171
* @param {string} name Name of the directive in camel-case. (ie <code>ngBind</code> which will match as
172172
* <code>ng-bind</code>).
173-
* @param {function} directiveFactory An injectable directive factroy function. See {@link guide/directive} for more
173+
* @param {function|Array} directiveFactory An injectable directive factory function. See {@link guide/directive} for more
174174
* info.
175175
* @returns {ng.$compileProvider} Self for chaining.
176176
*/

0 commit comments

Comments
 (0)