angular-signals-migration · git:20261120.76a1b83 · 2026-11-20 · sha256 c252f50d5c49ed9a
angular-signals-migration git:20261120.76a1b83A
Immutable. This exact content never changes and is served at /api/v1/blob/c252f50d5c49ed9a.
No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_echv3yjqkzasyk5c/c252f50d5c49ed9adaf56e5e2122896eb566effd643cb245769cb6cf10c7805c.json
Then /plugin install angular-signals-migration@markdownregistry-echv3yjqkzasyk5c in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.
--- name: angular-signals-migration description: Moves Angular components to signals, signal inputs and standalone APIs one component at a time, with a build and test run after each step. --- # Angular signals migration Migrate one component per pass. Never touch a component the user did not name, apart from its direct parents when a template call site must change. ## Steps 1. Read the component, its template, its spec and every place it is used. Note which fields the template reads. 2. Make it standalone if it is not: move imports from its NgModule into the component and remove it from the module declarations (`standalone: true` is the default from v19). 3. Convert inputs: `@Input() name` becomes `name = input<string>()` or `input.required<string>()`. Convert outputs to `output<T>()`. Two-way bindings use `model<T>()`. 4. Replace `ngOnChanges` and input setters with `computed()`. Use `effect()` only for side effects outside the template, never to set another signal. 5. Convert `@ViewChild` and `@ContentChild` to `viewChild()` and `contentChild()`. 6. Update the template: read signals with `name()`, and switch to `@if`, `@for (x of xs; track x.id)` and `@switch`. 7. Keep long-lived streams (HTTP polling, websockets) as observables and bridge them with `toSignal()` at the edge. Do not convert an RxJS pipeline that uses debounce, switchMap or retry. 8. Run `ng build` and `ng test --include <spec>`. Fix before moving on. ## Rules - Do not add `ChangeDetectionStrategy.OnPush` unless the component already passes with it. - Keep public names the same so parent templates need only call-site updates. ## Report Files changed, parents that needed template edits, and anything left on observables with the reason.