aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/compile.js
diff options
context:
space:
mode:
authorVojta Jina2012-08-12 10:45:14 -0700
committerVojta Jina2012-08-12 11:04:32 -0700
commit0e461f0c0741c06a6ad2151c2646e90a8ad584e0 (patch)
tree37fd57d6d373fe645a141764f95c3b55e0dac174 /src/ng/compile.js
parent5074448443363e5aab84616d76dea765f5fd45f2 (diff)
downloadangular.js-0e461f0c0741c06a6ad2151c2646e90a8ad584e0.tar.bz2
docs($compileProvider): remove duplicate of .directive()
Diffstat (limited to 'src/ng/compile.js')
-rw-r--r--src/ng/compile.js19
1 files changed, 3 insertions, 16 deletions
diff --git a/src/ng/compile.js b/src/ng/compile.js
index 5f444a30..31c1696c 100644
--- a/src/ng/compile.js
+++ b/src/ng/compile.js
@@ -149,20 +149,6 @@ var NON_ASSIGNABLE_MODEL_EXPRESSION = 'Non-assignable model expression: ';
*
* @description
*/
-
-/**
- * @ngdoc function
- * @name ng.$compileProvider#directive
- * @methodOf ng.$compileProvider
- * @function
- *
- * @description
- * Register a new directive with compiler
- *
- * @param {string} name name of the directive.
- * @param {function} directiveFactory An injectable directive factory function.
- * @returns {ng.$compileProvider} Self for chaining.
- */
$CompileProvider.$inject = ['$provide'];
function $CompileProvider($provide) {
var hasDirectives = {},
@@ -174,17 +160,18 @@ function $CompileProvider($provide) {
/**
* @ngdoc function
- * @name ng.$compileProvider.directive
+ * @name ng.$compileProvider#directive
* @methodOf ng.$compileProvider
* @function
*
* @description
- * Register directives with the compiler.
+ * Register a new directives with the compiler.
*
* @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
* info.
+ * @returns {ng.$compileProvider} Self for chaining.
*/
this.directive = function registerDirective(name, directiveFactory) {
if (isString(name)) {