File tree 1 file changed +5
-3
lines changed 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ data source input and template, except that its element and attribute selectors
6
6
with ` mat- ` instead of ` cdk- ` .
7
7
8
8
There are two types of trees: Flat tree and nested tree. The DOM structures are different for these
9
- two types of trees.
9
+ two types of trees. Flat trees generally offer better performance, while nested trees provide
10
+ flexibility.
10
11
11
12
#### Flat tree
12
13
In a flat tree, the hierarchy is flattened; nodes are not rendered inside of each other,
@@ -26,8 +27,9 @@ used to style the node such that it is indented to the appropriate level.
26
27
27
28
<!-- example(tree-flat-overview) -->
28
29
29
- Flat trees are generally easier to style and inspect. They are also more friendly to
30
- scrolling variations, such as infinite or virtual scrolling
30
+ Flat trees are generally easier to style and inspect. They are also more friendly to scrolling
31
+ variations, such as infinite or virtual scrolling. Flat trees
32
+ generally offer better performance.
31
33
32
34
<!-- TODO(tinayuangao): Add a flat tree example here -->
33
35
You can’t perform that action at this time.
0 commit comments