Where State Actually Lives in a Large Angular App
Default to the narrowest scope that works today, and widen it only when something outside that scope genuinely needs it.
TECHNICALThe safest-looking choice in Angular state management is usually the wrong one. Put it in the store. It's right there, it works, nobody questions it in review.
I've watched this happen more than once: a piece of state that had no business being anywhere but a single component ends up in the global store instead, because "it might be useful somewhere else eventually." Nobody makes that decision maliciously. It just feels safer than being wrong about scope later.
On one project I worked on, that's exactly what happened. A piece of UI state, something that should have lived and died with one component, got lifted into the global store early on, before anyone actually needed it anywhere else. For a while it didn't matter, maybe two or three components read that slice, harmless. Then the feature grew. What started as two or three components reading it turned into closer to a dozen, all subscribed to the same slice because it was already there and convenient, and every one of them re-rendered on every change, whether the change was relevant to them or not. The store slice had become a hub nobody designed for. Performance problems don't usually announce themselves clearly. This one showed up as "the page feels sluggish" long before anyone traced it back to a single state decision made months earlier.
The actual question, every time
Every piece of state in an Angular app answers the same question, whether you ask it on purpose or not: how far outside this component does this need to be visible. Component state, service state, global state, these aren't really three separate tools. They're three answers to the same question, at increasing scope.
Component state, the default that should stay the default
If a piece of state lives and dies with the component, form input, a toggle, whatever local UI state exists only to make one screen behave correctly, it belongs in the component. This sounds obvious written down. It's the one that gets violated first anyway, usually under the same reasoning: "just in case."
Service state, scoped to where it's actually shared
When a handful of components inside one feature genuinely need to see the same thing, a scoped service, Angular DI-scoped to that feature, or a signal living at the feature level, is the right shape. Not the whole app. Just the slice of the app that actually has a relationship to this state.
Global state, earned, not defaulted into
Global state is the right call when something is genuinely cross-cutting: auth status, active theme, permissions, things that unrelated parts of the app legitimately need at the same time, not things that might need it someday. The test isn't "could this be useful elsewhere." It's "is this needed elsewhere right now, by something that has no other reasonable way to get it."
This isn't a tooling problem
NgRx doesn't stop you from putting something in the global store that has no business there. Neither does any other state library. I don't think that's a flaw in the tooling, and I'd be misrepresenting the problem if I blamed the store for this. It's the same discipline question I've written about with Nx module boundaries and with what context to hand an AI agent: the tool gives you a place to put something. It doesn't make the decision about whether that something belongs there. That's still on whoever's writing the code, every time, not once at architecture-design time and then forgotten.
What actually changed how I approach this
The fix, in that project, wasn't a rewrite. It was pulling the state back down to where it actually belonged, once we could see who was really reading it and who wasn't. That's usually how this gets fixed in practice, not by getting the scope right from day one every time, nobody does, but by being willing to notice when something has drifted wider than it needs to be and move it back down.
Start narrow, expand on evidence
If I had to compress this into one habit: default to the narrowest scope that works today, and widen it only when something outside that scope genuinely needs it, not when it might. The cost of guessing too narrow is a five-minute refactor later. The cost of guessing too wide is a piece of state that quietly becomes a dependency for things that were never supposed to be coupled, and that one doesn't show up in a five-minute refactor, it shows up as "why does this page feel slow" six months later.
Curious where other people draw this line, especially on teams where the "just put it in the store" habit is already baked into how the codebase grew.
The safest-looking choice in Angular state management is usually the wrong one. Default to the narrowest scope that works today, and widen it only when something outside genuinely needs it.
