mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
f01901d766
Currently the migration that add `ChangeDetectionStrategy.Eager` to components tries to add the properties as last in the object literal. This can be tricky, because TS doesn't reflect the commas in the AST so we need have to do brittle string lookups to know where to insert it. These changes switch to inserting the property before the last pre-existing property which should be a bit more robust.