Files
angular/adev/src
Kam c49a12a07a docs: add a page for the Injectable to Service migration
`ng generate @angular/core:service` shipped in 22.1 without a documentation
page, so it is missing from the migrations index.

The page is written from the schematic rather than from its README, which
documents only the `providedIn: 'root'` case. A class declared without
options also migrates, to `@Service({autoProvided: false})`, and that is the
less obvious of the two outcomes.

It also records behavior the README leaves out: the constructor check stops
at the closest ancestor declared in your own source, the migration covers
test files as well, and a file with both migrated and skipped classes keeps
both the `Injectable` and the `Service` import.

Fixes #71035
2026-09-29 12:25:41 -07:00
..