Home / Market / angular ui patterns

angular ui patterns

Modern Angular UI patterns for loading states, error handling, and data display. Use when building UI components, handling async data, or managing component states.

skill★ 507590 dlgithubCC-BY-4.0 content; MIT code; upstream exceptions applyInstall in CosmosUpstream Source

Documentation & Preview

Angular UI Patterns

Modern UI patterns for building robust Angular applications optimized for AI agents and LLMs.

Overview

This skill covers essential UI patterns for:

Core Principles

  1. Never show stale UI - Only show loading when no data exists
  2. Surface all errors - Never silently fail
  3. Optimistic updates - Update UI before server confirms
  4. Progressive disclosure - Use @defer to load non-critical content
  5. Graceful degradation - Fallback for failed features

Structure

The SKILL.md file includes:

  1. Golden Rules - Non-negotiable patterns to follow
  2. Decision Trees - When to use skeleton vs spinner
  3. Code Examples - Correct vs incorrect implementations
  4. Anti-patterns - Common mistakes to avoid

Quick Reference

<!-- Angular template pattern for data states -->
@if (error()) {
<app-error-state [error]="error()" (retry)="load()" />
} @else if (loading() && !data()) {
<app-skeleton-state />
} @else if (!data()?.length) {
<app-empty-state message="No items found" />
} @else {
<app-data-display [data]="data()" />
}

Version

Current version: 1.0.0 (February 2026)

References