Skip to content

feat: add Angular & Sanity integration guide - #27

Merged
joneidejohnsen merged 2 commits into
mainfrom
add-angular-guide
Mar 3, 2026
Merged

feat: add Angular & Sanity integration guide#27
joneidejohnsen merged 2 commits into
mainfrom
add-angular-guide

Conversation

@kmelve

@kmelve kmelve commented Mar 3, 2026

Copy link
Copy Markdown
Member

Angular & Sanity Integration Guide

Adds a comprehensive Angular integration guide to the sanity-best-practices skill, matching the format and style of existing framework guides (Next.js, Nuxt, SvelteKit, Astro, Remix).

What's included

references/angular.md (~10KB, 10 sections):

  1. Setup & Configuration — Official template (sanity-template-angular-clean), dependencies, environment config
  2. Client Setup — Injectable SanityService wrapping @sanity/client + @sanity/image-url
  3. Data Fetching — Three patterns with comparison table: resource (recommended), rxResource, toSignal
  4. Routing — Lazy-loaded routes with withComponentInputBinding()
  5. Portable Text@portabletext/to-html pipe + community library mention
  6. Image OptimizationSanityImagePipe + NgOptimizedImage integration
  7. Modern Angular 19+ — Standalone components, signals, @defer, zoneless, inject()
  8. SSR & Prerendering — Built-in SSR, hydration, getPrerenderParams
  9. Visual Editing — Honest about no official support; basic preview pattern; community library
  10. Error Handling — Common errors table

SKILL.md — Added Angular to the integration guides list.

Research sources

  • Official template: sanity-io/sanity-template-angular-clean (Angular 19.2, zoneless, standalone, Resource API)
  • Angular 19 docs (signals, resource API, SSR, @defer)
  • Community: @limitless-angular/sanity for Portable Text components
  • Existing agent-toolkit guides for format/style reference

Key decisions

  • Recommended resource API as primary data fetching pattern (Angular 19+)
  • Honest about Visual Editing gap (no official Sanity support for Angular)
  • Angular-idiomatic patterns throughout (services, pipes, DI, standalone components)
  • Cross-references groq.md, schema.md, image.md, portable-text.md

@kmelve
kmelve requested a review from joneidejohnsen March 3, 2026 06:43
@joneidejohnsen
joneidejohnsen merged commit 3633531 into main Mar 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants