mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
docs(ng.directives): add correct @restrict for all ng directives
This commit is contained in:
parent
1567440665
commit
d8987c170f
8 changed files with 10 additions and 1 deletions
|
|
@ -3,6 +3,7 @@
|
|||
/**
|
||||
* @ngdoc directive
|
||||
* @name ng.directive:ngBind
|
||||
* @restrict AC
|
||||
*
|
||||
* @description
|
||||
* The `ngBind` attribute tells Angular to replace the text content of the specified HTML element
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@ function classDirective(name, selector) {
|
|||
/**
|
||||
* @ngdoc directive
|
||||
* @name ng.directive:ngClass
|
||||
* @restrict AC
|
||||
*
|
||||
* @description
|
||||
* The `ngClass` allows you to set CSS classes on HTML an element, dynamically, by databinding
|
||||
|
|
@ -210,6 +211,7 @@ var ngClassDirective = classDirective('', true);
|
|||
/**
|
||||
* @ngdoc directive
|
||||
* @name ng.directive:ngClassOdd
|
||||
* @restrict AC
|
||||
*
|
||||
* @description
|
||||
* The `ngClassOdd` and `ngClassEven` directives work exactly as
|
||||
|
|
@ -257,6 +259,7 @@ var ngClassOddDirective = classDirective('Odd', 0);
|
|||
/**
|
||||
* @ngdoc directive
|
||||
* @name ng.directive:ngClassEven
|
||||
* @restrict AC
|
||||
*
|
||||
* @description
|
||||
* The `ngClassOdd` and `ngClassEven` directives work exactly as
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
/**
|
||||
* @ngdoc directive
|
||||
* @name ng.directive:ngCloak
|
||||
* @restrict AC
|
||||
*
|
||||
* @description
|
||||
* The `ngCloak` directive is used to prevent the Angular html template from being briefly
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
/**
|
||||
* @ngdoc directive
|
||||
* @name ng.directive:ngInit
|
||||
* @restrict AC
|
||||
*
|
||||
* @description
|
||||
* The `ngInit` directive specifies initialization tasks to be executed
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
/**
|
||||
* @ngdoc directive
|
||||
* @name ng.directive:ngNonBindable
|
||||
* @restrict AC
|
||||
* @priority 1000
|
||||
*
|
||||
* @description
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
/**
|
||||
* @ngdoc directive
|
||||
* @name ng.directive:ngStyle
|
||||
* @restrict AC
|
||||
*
|
||||
* @description
|
||||
* The `ngStyle` directive allows you to set CSS style on an HTML element conditionally.
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
/**
|
||||
* @ngdoc directive
|
||||
* @name ng.directive:ngTransclude
|
||||
* @restrict AC
|
||||
*
|
||||
* @description
|
||||
* Directive that marks the insertion point for the transcluded DOM of the nearest parent directive that uses transclusion.
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
/**
|
||||
* @ngdoc directive
|
||||
* @name ng.directive:script
|
||||
* @restrict E
|
||||
*
|
||||
* @description
|
||||
* Load content of a script tag, with type `text/ng-template`, into `$templateCache`, so that the
|
||||
* template can be used by `ngInclude`, `ngView` or directive templates.
|
||||
*
|
||||
* @restrict E
|
||||
* @param {'text/ng-template'} type must be set to `'text/ng-template'`
|
||||
*
|
||||
* @example
|
||||
|
|
|
|||
Loading…
Reference in a new issue