Skip to content

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

@fabianrios

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

Metadata

Metadata

Assignees

Labels

area: migrationsIssues related to `ng update`/`ng generate` migrations

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions