You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: adev/src/content/guide/templates/control-flow.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,8 @@ A typical `@for` loop looks like:
50
50
}
51
51
```
52
52
53
+
Angular's `@for` block does not support flow-modifying statements like JavaScript's `continue` or `break`.
54
+
53
55
### Why is `track` in `@for` blocks important?
54
56
55
57
The `track` expression allows Angular to maintain a relationship between your data and the DOM nodes on the page. This allows Angular to optimize performance by executing the minimum necessary DOM operations when the data changes.
0 commit comments