2024-11-12
6028
#angular
Lewis Cianci
192812
109
Nov 12, 2024 ⋅ 21 min read

Working with the Angular tree

Lewis Cianci I'm a passionate mobile-first developer, and I've been making apps with Flutter since it first released. I also use ASP.NET 5 for web. Given the chance, I'll talk to you for far too long about why I love Flutter so much.

Recent posts:

Implementing React Islands In Static Web Applications

Implementing React Islands in static web applications

React Islands integrates React into legacy codebases, enabling modernization without requiring a complete rewrite.

Nelson Michael
Jan 28, 2025 ⋅ 4 min read

Onlook: A React visual editor

Onlook bridges design and development, integrating design tools into IDEs for seamless collaboration and faster workflows.

Jude Miracle
Jan 27, 2025 ⋅ 8 min read
A Comprehensive Guide To JavaScript Generators

A comprehensive guide to JavaScript generators

JavaScript generators offer a powerful and often overlooked way to handle asynchronous operations, manage state, and process data streams.

Fimber Elemuwa
Jan 24, 2025 ⋅ 8 min read
​​Solving Micro-Frontend Challenges With Module Federation

​​Solving micro-frontend challenges with Module Federation

webpack’s Module Federation allows you to easily share code and dependencies between applications, helpful in micro-frontend architecture.

Peter Aideloje
Jan 23, 2025 ⋅ 7 min read
View all posts

2 Replies to "Working with the Angular tree"

  1. treeControl is deprecated, use one of `levelAccessor` or `childrenAccessor` instead. To be removed in a future version.

  2. The flat tree has performance benefits. Your example was just not suited for it . Ideally you want to render the entire tree at once, and not load it every time you expand a node. But wait, if you use a nested tree and give the entire tree at once, you can have performance issues. That is the point of the flat tree. Where nested tree struggles, flat tree comes to the rescue. It’s easier for the DOM to render one level when the number of elements is high.

Leave a Reply