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:

debugging javascript web apps

How to master JavaScript debugging for web apps

With the right tools and strategies, JavaScript debugging can become much easier. Explore eight strategies for effective JavaScript debugging, including source maps and other techniques using Chrome DevTools.

Ivy Walobwa
Jan 9, 2025 ⋅ 8 min read
A Deep Dive Into Angular’s FormArray Container

A deep dive into Angular’s FormArray container

This Angular guide demonstrates how to create a pseudo-spreadsheet application with reactive forms using the `FormArray` container.

Kayode Adeniyi
Jan 8, 2025 ⋅ 3 min read
Handling React Loading States With React Loading Skeleton

Handling React loading states with React Loading Skeleton

Implement a loading state, or loading skeleton, in React with and without external dependencies like the React Loading Skeleton package.

Ibadehin Mojeed
Jan 7, 2025 ⋅ 7 min read
Getting Ready For Tailwind V4.0

Getting ready for Tailwind v4.0

The beta version of Tailwind CSS v4.0 was released a few months ago. Explore the new developments and how Tailwind makes the build process faster and simpler.

Oscar Jite-Orimiono
Jan 6, 2025 ⋅ 12 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