Skip to content

retain accesibility modifier if it's already present for signal migrations #59882

Closed

Description

@fabianrios

Command

generate

Description

right now, when this code is transformed

@ViewChild('sidenav', { read: MatSidenav }) public sidenav: MatSidenav;

the final output looks like this

readonly sidenav = viewChild('sidenav', { read: MatSidenav });

Describe the solution you'd like

it should be like this leaving also the accesibility modifier present

public readonly sidenav = viewChild('sidenav', { read: MatSidenav });

Describe alternatives you've considered

No response

Activity

  1. added
    area: migrations
    on Feb 7, 2025
  2. added this to the needsTriage milestone on Feb 7, 2025
  3. pkozlowski-opensource commented on Apr 2, 2025

    @pkozlowski-opensource
    Member

    This just got fixed in the PR #60688

  4. angular-automatic-lock-bot commented on May 3, 2025

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  5. locked and limited conversation to collaborators on May 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: migrations

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions