
Tree displays hierarchical data with expandable parent and child nodes. Use it for folders, categories, permissions, taxonomies, organization structures, nested settings, and entity trees where the level of each item matters. Use List for a simple vertical collection, Navigation or Sidebar for primary app navigation, ExpansionPanel for FAQ-like sections, and Table or DataView when rows need columns, sorting, filtering, or dense data operations.
Key Features:
- Hierarchical representation for parent and child nodes.
- Dynamic loading for large or remote trees.
- Custom node templates with different layouts for leaf and expandable nodes.
- Keyboard navigation and ARIA attributes through the Angular CDK tree primitives.