mirror of
https://github.com/angular/angular.git
synced 2026-11-23 07:05:14 -05:00
`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