You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(angular): live-compile the SearchInput example in for-angular-shops
Replaces the hand-written illustrative Rozie source + "structurally
equivalent" claim with live rozie-codegen blocks pointing at the canonical
examples/SearchInput.rozie. Two fences:
- \`\`\`rozie-src SearchInput — inlines the real .rozie source verbatim
- \`\`\`rozie-out SearchInput angular — compiles it through @rozie/core
on every docs build, embeds the verbatim Angular emit
Effect: the page can never drift from the compiler. If the Angular
emitter ever regresses on this example, the docs build fails before
the page renders.
Also rewrites the hand-written "what an Angular dev typically writes
today" sample to match SearchInput.rozie's actual API (placeholder /
minLength / autofocus inputs, search + clear outputs, viewChild for
the input ref, Subject + debounceTime for the 300ms input throttle,
afterNextRender for the autofocus). Authentic side-by-side comparison
of the same component, two ways to write it — same prop shape, same
event surface, same behavior.
Links to the working consumer at
examples/consumers/angular-analogjs/src/app/AppComponent.ts which
imports the same SearchInput.rozie through @analogjs/vite-plugin-angular
and runs it inside a real Application Builder bundle.
Verified: \`pnpm --filter @rozie/docs build\` green (the rozie-out
Angular fence triggers a live compile of SearchInput.rozie on every
build, fails the build if any error diagnostic is emitted).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments