angular-state-and-rx

Guide Angular state management with signals, services-as-state, and NgRx patterns.

9|1|Updated Jun 16, 2026
One-click install
npx skills add https://github.com/AratKruglik/antigravity-sdlc --skill angular-state-and-rx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: angular-state-and-rx
Source: https://github.com/AratKruglik/antigravity-sdlc/tree/main/plugins/angular-plugin/skills/angular-state-and-rx
Command: npx skills add https://github.com/AratKruglik/antigravity-sdlc --skill angular-state-and-rx

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

State management in modern Angular apps often involves mixing signals, services-as-state, and various NgRx patterns, leading to fragmented approaches. This skill consolidates guidance for selecting and combining signals, services-as-state, NgRx Store + Effects + Selectors, NgRx Component Store, and NgRx Signals to build scalable state solutions.

Core Features & Use Cases

  • Signals-based local component state with computed values and effects for side effects.
  • Services-as-state to share reactive state across components without a full store.
  • NgRx Store + Effects + Selectors for robust domain state with time-travel debugging.
  • NgRx Component Store for lightweight per-component state management.
  • NgRx Signals as a newer approach for signal-based state with less boilerplate.
  • Bridging signals ↔ RxJS to interoperate between two reactivity paradigms.

Quick Start

Select an Angular state strategy (signals, service-based, or NgRx) and implement a small, consistent example to validate the chosen approach.

Frequently Asked Questions about angular-state-and-rx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose between signals and NgRx for Angular state management?

Choose Angular signals for local component state, services-as-state for cross-component sharing, and NgRx Store for robust domain state requiring time-travel debugging. This approach ensures scalable state solutions by matching the tool to the specific component or module context.

What is the best way to bridge signals and RxJS in modern Angular apps?

Bridging signals and RxJS in Angular involves interoperating between the two reactivity paradigms to connect signal-based local state with observable streams. This technique prevents fragmented approaches and ensures safer architecture when mixing reactivity patterns.

When should I use NgRx Component Store instead of a full NgRx Store?

Use NgRx Component Store for lightweight per-component state management instead of a full NgRx Store when you need robust local state without global boilerplate. Reserve full NgRx Store with Effects and Selectors for complex domain state across modules.

Can I use services-as-state to share reactive state across components without a full store?

Yes, using services-as-state allows you to share reactive state across Angular components without implementing a full store. This pattern works well for scenarios involving server data caching and cross-component sharing where global state tools are excessive.

What are common anti-patterns when mixing signals and NgRx patterns in Angular?

Common anti-patterns when mixing signals and NgRx include fragmented approaches and improper bridging between signals and RxJS. Highlighting these anti-patterns ensures safer architecture by maintaining consistent state strategies across components, modules, and routing.