feat(migrations): ngclass directives to class bindings#62983
feat(migrations): ngclass directives to class bindings#62983aparzi wants to merge 3 commits intoangular:mainfrom
Conversation
81c69f2 to
c96deb3
Compare
|
Hi @JeanMeche, |
...ges/core/schematics/migrations/ngclass-to-class-migration/ngclass-to-class-migration.spec.ts
Outdated
Show resolved
Hide resolved
...ges/core/schematics/migrations/ngclass-to-class-migration/ngclass-to-class-migration.spec.ts
Outdated
Show resolved
Hide resolved
...ges/core/schematics/migrations/ngclass-to-class-migration/ngclass-to-class-migration.spec.ts
Outdated
Show resolved
Hide resolved
...ges/core/schematics/migrations/ngclass-to-class-migration/ngclass-to-class-migration.spec.ts
Outdated
Show resolved
Hide resolved
...ges/core/schematics/migrations/ngclass-to-class-migration/ngclass-to-class-migration.spec.ts
Outdated
Show resolved
Hide resolved
...ges/core/schematics/migrations/ngclass-to-class-migration/ngclass-to-class-migration.spec.ts
Outdated
Show resolved
Hide resolved
...ges/core/schematics/migrations/ngclass-to-class-migration/ngclass-to-class-migration.spec.ts
Outdated
Show resolved
Hide resolved
packages/core/schematics/ng-generate/ngclass-to-class-migration/README.md
Outdated
Show resolved
Hide resolved
packages/core/schematics/ng-generate/ngclass-to-class-migration/README.md
Outdated
Show resolved
Hide resolved
packages/core/schematics/ng-generate/ngclass-to-class-migration/README.md
Show resolved
Hide resolved
e17d83c to
7eed6fb
Compare
|
Hi @JeanMeche, I fix all your feedbacks. Except for related to the possible flag, I've only just currently update the relevant test case. Let me know if it's OK or if we want to proceed with a flag (if it's worth it). |
...ges/core/schematics/migrations/ngclass-to-class-migration/ngclass-to-class-migration.spec.ts
Outdated
Show resolved
Hide resolved
...ges/core/schematics/migrations/ngclass-to-class-migration/ngclass-to-class-migration.spec.ts
Outdated
Show resolved
Hide resolved
7eed6fb to
fa20d78
Compare
|
@JeanMeche |
fa20d78 to
c2a775c
Compare
|
@JeanMeche I updated this PR with custom option |
...ges/core/schematics/migrations/ngclass-to-class-migration/ngclass-to-class-migration.spec.ts
Outdated
Show resolved
Hide resolved
...ges/core/schematics/migrations/ngclass-to-class-migration/ngclass-to-class-migration.spec.ts
Outdated
Show resolved
Hide resolved
packages/core/schematics/migrations/ngclass-to-class-migration/util.ts
Outdated
Show resolved
Hide resolved
packages/core/schematics/migrations/ngclass-to-class-migration/ngclass-to-class-migration.ts
Show resolved
Hide resolved
...ges/core/schematics/migrations/ngclass-to-class-migration/ngclass-to-class-migration.spec.ts
Outdated
Show resolved
Hide resolved
JeanMeche
left a comment
There was a problem hiding this comment.
It's probably not perfect but I'm satisfied with what we have now !
packages/core/schematics/migrations/ngclass-to-class-migration/index.ts
Outdated
Show resolved
Hide resolved
8326345 to
a549ec1
Compare
feat angular#61661 - add migration to convert ngClass to use class
refactor - Moved parseTemplate logic to a shared utility function to improve code reuse and maintainability
6589fd0 to
cdd2e13
Compare
packages/core/schematics/migrations/control-flow-migration/types.ts
Outdated
Show resolved
Hide resolved
|
This PR was merged into the repository. The changes were merged into the following branches:
|
refactor - Moved parseTemplate logic to a shared utility function to improve code reuse and maintainability PR Close #62983
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Added Migration Feature to migrate ngClass to class
Issue Number: #61661
What is the new behavior?
It'll migrate ngClass to class bindings to follow the style guide Prefer class over ngClass
Now
Before
Does this PR introduce a breaking change?