Anarchitecture Bricks Docs

Repository documentation hub for packages, guides, and generated references.

Angular Guide

Intent

This is the Angular implementation cookbook for Anarchitecture Bricks. It focuses on practical Angular setup and consumption patterns, while shared design/runtime guidance and TS contract ownership stay canonical in:

Architecture

Easy Mode with Root Exports

Use root package exports for fastest onboarding and lowest host-app wiring cost:

import { provideHttpClient, withFetch } from '@angular/common/http';
import { provideFormsFeature } from '@anarchitects/forms-angular';
import { provideAuthFeature } from '@anarchitects/auth-angular';

export const appConfig = {
  providers: [provideHttpClient(withFetch()), ...provideFormsFeature(), ...provideAuthFeature()],
};

Easy mode is the default for product teams that want stable integration points with minimal setup decisions.

Advanced Mode with Secondary Entry Points

Use layer-specific entry points when you need targeted overrides:

Use advanced mode for custom transport adapters, scoped state lifecycles, or domain-specific feature composition without breaking the easy root-consumption path.

TS Contract Integration

Contract ownership remains in TS packages:

Angular consumers (@anarchitects/forms-angular, @anarchitects/auth-angular) map TS contracts in data-access and state, then expose stable UI/feature APIs. For contract ownership, change workflow, and compatibility policy, follow TS Contracts Guide.

Layout Cookbook

State/Data Access

Testing and Docs Workflow

Common Pitfalls