Files
angular/packages
Kam 78d0648348 docs: add the missing inject import to the inject migration examples
The "After" example for `backwardsCompatibleConstructors` imports only
`Component` while its class body calls `inject(MyService)`. The migration
adds `inject` to the `@angular/core` import itself, so the example never
matched its output. The schematic README has the same gap, and its own
first example references `TOKEN` while importing `DI_TOKEN`.

The same block also carried a markdown-escaped doc comment,
`/\*_ ... _/`, and a property sitting outside the class indentation.
`26fed34e0e` introduced both by running prettier over the page while the
snippets were still `<docs-code>` elements, where `**` reads as emphasis.
`caaa5ec8e6` re-indented five of the six blocks when it converted them to
fenced code, and `3731f07579` restored the escaped comment. Prettier skips
a fence it cannot parse, which is why `6270bba056` normalized every other
block on the page and left this one untouched.

Repairing the comment brings the block back under the formatter, so its
imports and indentation now follow `bracketSpacing: false` like the rest
of the page.

(cherry picked from commit 1087257bb5)
2026-09-30 16:33:16 +00:00
..
2025-11-06 10:03:05 -08:00
…
…
2026-01-07 12:28:34 -05:00
2025-11-06 10:03:05 -08:00

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

Usage information and reference details can be found in Angular documentation.

License: MIT