diff --git a/src/cdk/tree/tree.md b/src/cdk/tree/tree.md index 30de3315ce20..9f8e0c7163f8 100644 --- a/src/cdk/tree/tree.md +++ b/src/cdk/tree/tree.md @@ -55,11 +55,11 @@ In order to use the tree, you must define a tree node template. There are two ty template defines the look of the tree node, expansion/collapsing control and the structure for nested children nodes. -A node definition is specified via any element with `cdkNodeDef`. This directive exports the node +A node definition is specified via any element with `cdkTreeNodeDef`. This directive exports the node data to be used in any bindings in the node template. ```html - + {{node.key}}: {{node.value}} ``` @@ -80,7 +80,7 @@ When using nested tree nodes, the node template must contain a `cdkTreeNodeOutle where the children of the node will be rendered. ```html - + {{node.value}} @@ -96,7 +96,7 @@ a tree node recursively by setting `[cdkTreeNodeToggleRecursive]` to true. activation. For icon buttons, ensure that `aria-label` is provided. ```html - + @@ -110,7 +110,7 @@ The `cdkTreeNodePadding` directive can be placed in a flat tree's node template information of a flat tree node. ```html - + {{node.value}} ``` @@ -125,10 +125,10 @@ The tree may include multiple node templates, where a template is chosen for a particular data node via the `when` predicate of the template. ```html - + {{node.value}} - + [ A special node {{node.value}} ] ``` @@ -200,11 +200,11 @@ interaction. ```html ``` In this example, `$event` contains the node's data and is equivalent to the implicit data passed in -the `cdkNodeDef` context. +the `cdkTreeNodeDef` context. diff --git a/src/material/tree/tree.md b/src/material/tree/tree.md index a9eba1238d0c..e2411fa4cda0 100644 --- a/src/material/tree/tree.md +++ b/src/material/tree/tree.md @@ -55,11 +55,11 @@ In order to use the tree, you must define a tree node template. There are two ty template defines the look of the tree node, expansion/collapsing control and the structure for nested children nodes. -A node definition is specified via any element with `matNodeDef`. This directive exports the node +A node definition is specified via any element with `matTreeNodeDef`. This directive exports the node data to be used in any bindings in the node template. ```html - + {{node.key}}: {{node.value}} ``` @@ -80,7 +80,7 @@ When using nested tree nodes, the node template must contain a `matTreeNodeOutle where the children of the node will be rendered. ```html - + {{node.value}} @@ -96,7 +96,7 @@ a tree node recursively by setting `[matTreeNodeToggleRecursive]` to true. activation. For icon buttons, ensure that `aria-label` is provided. ```html - + @@ -119,7 +119,7 @@ The `matTreeNodePadding` can be placed in a flat tree's node template to display information of a flat tree node. ```html - + {{node.value}} ``` @@ -134,10 +134,10 @@ The tree may include multiple node templates, where a template is chosen for a particular data node via the `when` predicate of the template. ```html - + {{node.value}} - + [ A special node {{node.value}} ] ``` @@ -209,11 +209,11 @@ interaction. ```html ``` In this example, `$event` contains the node's data and is equivalent to the implicit data passed in -the `matNodeDef` context. +the `matTreeNodeDef` context.