mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
parent
938b2e1217
commit
f6fa7c9c95
1 changed files with 5 additions and 4 deletions
|
|
@ -116,10 +116,11 @@ Doing so generally makes it easier to determine what directives a given element
|
|||
</div>
|
||||
|
||||
<div class="alert alert-success">
|
||||
**Best Practice:** Comment directives were commonly used in places where the DOM API limits (e.g. inside `<table>` elements)
|
||||
to create directives that spanned multiple elements. AngularJS 1.2 introduces
|
||||
{@link api/ng.directive:ngRepeat `ng-repeat-start` and `ng-repeat-end`} as a better solution to this problem.
|
||||
Developers are encouraged to use this over custom comment directives when possible.
|
||||
**Best Practice:** Comment directives were commonly used in places where the DOM API limits the
|
||||
ability to create directives that spanned multiple elements (e.g. inside `<table>` elements).
|
||||
AngularJS 1.2 introduces {@link api/ng.directive:ngRepeat `ng-repeat-start` and `ng-repeat-end`}
|
||||
as a better solution to this problem. Developers are encouraged to use this over custom comment
|
||||
directives when possible.
|
||||
</div>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue