angular/packages/core/schematics
Ryan Russell b144126612 fix(core): inject migration: replace param with this. (#60713)
The inject tool inserts `const foo = this.foo` if code
in the constructor referenced the constructor parameter `foo`.
If `foo` is a readonly property, we can instead replace `foo` with
`this.foo`. This allows more properties to be moved out of the
constructor with combineMemberInitializers.
For now, it only touches initializers, not all of the code in the
constructor.

PR Close #60713
2025-04-10 13:31:31 -04:00
..
migrations fix(core): fix ng generate @angular/core:output-migration. Fixes angular#58650 (#60763) 2025-04-08 16:10:04 -07:00
ng-generate fix(core): inject migration: replace param with this. (#60713) 2025-04-10 13:31:31 -04:00
test fix(core): inject migration: replace param with this. (#60713) 2025-04-10 13:31:31 -04:00
utils fix(core): reduce total memory usage of various migration schematics (#60776) 2025-04-08 16:12:57 -07:00
BUILD.bazel feat(migrations): add migration to convert templates to use self-closing tags (#57342) 2025-02-18 17:33:59 +00:00
collection.json feat(migrations): add migration to convert templates to use self-closing tags (#57342) 2025-02-18 17:33:59 +00:00
migrations.json refactor(migrations): use import manager in provide-initializer (#58456) 2024-11-04 18:15:00 +01:00
package.json refactor(migrations): ensure CommonJS migrations can be accessed (#43657) 2021-10-04 16:24:48 -07:00
rollup.config.js docs: update license year (#59883) 2025-03-04 19:36:48 +00:00
tsconfig.json refactor(migrations): avoid relative imports in schematic code (#57214) 2024-08-29 07:50:41 -07:00