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:

Build a Next.js 16 PWA with true offline support

Learn how to build a Next.js 16 Progressive Web App with true offline support, using IndexedDB, service workers, and sync logic to keep your app usable without a network.

Jude Miracle
Jan 14, 2026 ⋅ 9 min read
replay january 14

The Replay (1/14/26): Deterministic agents, Angular v21, and more

Discover what’s new in The Replay, LogRocket’s newsletter for dev and engineering leaders, in the January 14th issue.

Matt MacCormack
Jan 14, 2026 ⋅ 33 sec read
deterministic AI alexandra spalato

How to build deterministic agentic AI with state machines in n8n

This tutorial explores how to build a robust, state-machine-driven lead qualification system using n8n, a persistent data layer (n8n data tables), and an external CRM (GoHighLevel).

Alexandra Spalato
Jan 14, 2026 ⋅ 5 min read

6 fast (native) alternatives for VSCode

VSCode has architectural performance limits. Compare six fast, native code editors built for lower resource usage.

Shalitha Suranga
Jan 9, 2026 ⋅ 10 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

Would you be interested in joining LogRocket's developer community?

Join LogRocket’s Content Advisory Board. You’ll help inform the type of content we create and get access to exclusive meetups, social accreditation, and swag.

Sign up now