mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-24 03:55:49 +08:00
docs($compile): remove reference to ngRepeat providing compile function
ngRepeat no longer has the compile function in its directive definition object, since it retrieves its transclusion via the link function. Closes 5638
This commit is contained in:
@@ -262,11 +262,7 @@
|
||||
* ```
|
||||
*
|
||||
* The compile function deals with transforming the template DOM. Since most directives do not do
|
||||
* template transformation, it is not used often. Examples that require compile functions are
|
||||
* directives that transform template DOM, such as {@link
|
||||
* api/ng.directive:ngRepeat ngRepeat}, or load the contents
|
||||
* asynchronously, such as {@link ngRoute.directive:ngView ngView}. The
|
||||
* compile function takes the following arguments.
|
||||
* template transformation, it is not used often. The compile function takes the following arguments:
|
||||
*
|
||||
* * `tElement` - template element - The element where the directive has been declared. It is
|
||||
* safe to do template transformation on the element and child elements only.
|
||||
|
||||
Reference in New Issue
Block a user