# Immutability in angular

DevFeed: [Immutability in angular](<https://devfeed.tech/articles/immutability-in-angular-27274.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/201707/immutability-in-angular/>)

Published: 2017-07-11T00:00:00Z

Content type: tutorial

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [Angular](<https://devfeed.tech/topics/angular.md>), [Data structures](<https://devfeed.tech/topics/data-structures.md>), [Front end](<https://devfeed.tech/topics/frontend.md>), [Code](<https://devfeed.tech/topics/code.md>), [ui](<https://devfeed.tech/topics/ui.md>), [Graphs](<https://devfeed.tech/topics/graphs.md>)

Tags: [angular](<https://devfeed.tech/tags/angular.md>), [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [data-structure](<https://devfeed.tech/tags/data-structure.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [http](<https://devfeed.tech/tags/http.md>), [immutability](<https://devfeed.tech/tags/immutability.md>), [ui](<https://devfeed.tech/tags/ui.md>)

## AI overview

This article explains an immutable, Redux-inspired approach to managing complex hierarchical state in Angular. It recommends recalculating possible values from scratch after user changes, including when asynchronous backend requests and multiple UI components are involved, and presents a simpler categories-and-tags example.

## Source excerpt

Some time ago I've been struggling with mapping hierarchical data structure in angular. Labels hierarchy was complex (like 4 levels deep with multiple parents, multiple children, basically graph like structure with some logic behind it). In the end it was/is still working but that's the best I can say about it. Read more