Skip to content

fix(migrations): fix NgClass leaving trailing comma after removal#67697

Open
rishabhdeepsingh wants to merge 1 commit intoangular:mainfrom
rishabhdeepsingh:ngclass-fix
Open

fix(migrations): fix NgClass leaving trailing comma after removal#67697
rishabhdeepsingh wants to merge 1 commit intoangular:mainfrom
rishabhdeepsingh:ngclass-fix

Conversation

@rishabhdeepsingh
Copy link

This fixes an issue where when removing NgClass from the imports array of a component, an extra trailing comma would be left behind if it was the last element.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.dev application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

Issue Number: 67631

What is the new behavior?

Fixed the migration where imports is the last.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

N/A

@google-cla
Copy link

google-cla bot commented Mar 16, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@pullapprove pullapprove bot requested a review from AndrewKushnir March 16, 2026 03:28
@angular-robot angular-robot bot added the area: migrations Issues related to `ng update`/`ng generate` migrations label Mar 16, 2026
@ngbot ngbot bot added this to the Backlog milestone Mar 16, 2026
@JeanMeche JeanMeche requested review from JeanMeche and removed request for AndrewKushnir March 16, 2026 07:19
@JeanMeche
Copy link
Member

Before we can have a look at this chance, can you make sure to approve the CLA with your risha*********gh98​@gmail.com address (or change the author of the commit).

@rishabhdeepsingh
Copy link
Author

Hey @JeanMeche that its the 2nd email and is already approved!

image

This fixes an issue where when removing NgClass from the imports array of a component, an extra trailing comma would be left behind if it was the last element in that component`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: migrations Issues related to `ng update`/`ng generate` migrations cla: yes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants