mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-23 05:25:47 +00:00
docs($compileProvider): remove duplicate of .directive()
This commit is contained in:
parent
00683a8bbb
commit
9be169365c
1 changed files with 3 additions and 16 deletions
|
|
@ -149,20 +149,6 @@ var NON_ASSIGNABLE_MODEL_EXPRESSION = 'Non-assignable model expression: ';
|
||||||
*
|
*
|
||||||
* @description
|
* @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'];
|
$CompileProvider.$inject = ['$provide'];
|
||||||
function $CompileProvider($provide) {
|
function $CompileProvider($provide) {
|
||||||
var hasDirectives = {},
|
var hasDirectives = {},
|
||||||
|
|
@ -174,17 +160,18 @@ function $CompileProvider($provide) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ngdoc function
|
* @ngdoc function
|
||||||
* @name ng.$compileProvider.directive
|
* @name ng.$compileProvider#directive
|
||||||
* @methodOf ng.$compileProvider
|
* @methodOf ng.$compileProvider
|
||||||
* @function
|
* @function
|
||||||
*
|
*
|
||||||
* @description
|
* @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
|
* @param {string} name Name of the directive in camel-case. (ie <code>ngBind</code> which will match as
|
||||||
* <code>ng-bind</code>).
|
* <code>ng-bind</code>).
|
||||||
* @param {function} directiveFactory An injectable directive factroy function. See {@link guide/directive} for more
|
* @param {function} directiveFactory An injectable directive factroy function. See {@link guide/directive} for more
|
||||||
* info.
|
* info.
|
||||||
|
* @returns {ng.$compileProvider} Self for chaining.
|
||||||
*/
|
*/
|
||||||
this.directive = function registerDirective(name, directiveFactory) {
|
this.directive = function registerDirective(name, directiveFactory) {
|
||||||
if (isString(name)) {
|
if (isString(name)) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue