mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Currently the migration updates:
```ts
constructor(@Inject(LOCALE_ID) locale: string) {
console.log({ locale });
}
```
to:
```ts
constructor() {
console.log({ locale });
}
```
This fixes the migration, and results in:
```
constructor() {
const locale = inject(LOCALE_ID);
console.log({ locale });
}
```
PR Close #57134
|
||
|---|---|---|
| .. | ||
| global | ||
| primitives | ||
| reference-manifests | ||
| rxjs-interop | ||
| schematics | ||
| src | ||
| test | ||
| testing | ||
| BUILD.bazel | ||
| index.ts | ||
| package.json | ||
| PACKAGE.md | ||
| public_api.ts | ||