mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
docs: fix IMPORTANT for "Animating the items of a reordering list" (#58938)
The specialized `IMPORTANT` highlighting was not being applied to the message, due to a line break. PR Close #58938
This commit is contained in:
parent
cca70cbc62
commit
9bee4a3c08
1 changed files with 1 additions and 2 deletions
|
|
@ -115,8 +115,7 @@ This is because it will lose track of which element is which, resulting in broke
|
|||
The only way to help Angular keep track of such elements is by assigning a `TrackByFunction` to the `NgForOf` directive.
|
||||
This makes sure that Angular always knows which element is which, thus allowing it to apply the correct animations to the correct elements all the time.
|
||||
|
||||
IMPORTANT:
|
||||
If you need to animate the items of an `*ngFor` list and there is a possibility that the order of such items will change during runtime, always use a `TrackByFunction`.
|
||||
IMPORTANT: If you need to animate the items of an `*ngFor` list and there is a possibility that the order of such items will change during runtime, always use a `TrackByFunction`.
|
||||
|
||||
## Animations and Component View Encapsulation
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue