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

Commit 9be1693

Browse files
committed
docs($compileProvider): remove duplicate of .directive()
1 parent 00683a8 commit 9be1693

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

src/ng/compile.js

+3-16
Original file line numberDiff line numberDiff line change
@@ -149,20 +149,6 @@ var NON_ASSIGNABLE_MODEL_EXPRESSION = 'Non-assignable model expression: ';
149149
*
150150
* @description
151151
*/
152-
153-
/**
154-
* @ngdoc function
155-
* @name ng.$compileProvider#directive
156-
* @methodOf ng.$compileProvider
157-
* @function
158-
*
159-
* @description
160-
* Register a new directive with compiler
161-
*
162-
* @param {string} name name of the directive.
163-
* @param {function} directiveFactory An injectable directive factory function.
164-
* @returns {ng.$compileProvider} Self for chaining.
165-
*/
166152
$CompileProvider.$inject = ['$provide'];
167153
function $CompileProvider($provide) {
168154
var hasDirectives = {},
@@ -174,17 +160,18 @@ function $CompileProvider($provide) {
174160

175161
/**
176162
* @ngdoc function
177-
* @name ng.$compileProvider.directive
163+
* @name ng.$compileProvider#directive
178164
* @methodOf ng.$compileProvider
179165
* @function
180166
*
181167
* @description
182-
* Register directives with the compiler.
168+
* Register a new directives with the compiler.
183169
*
184170
* @param {string} name Name of the directive in camel-case. (ie <code>ngBind</code> which will match as
185171
* <code>ng-bind</code>).
186172
* @param {function} directiveFactory An injectable directive factroy function. See {@link guide/directive} for more
187173
* info.
174+
* @returns {ng.$compileProvider} Self for chaining.
188175
*/
189176
this.directive = function registerDirective(name, directiveFactory) {
190177
if (isString(name)) {

0 commit comments

Comments
 (0)