cyrilletuzi/vscode-angular-schematics

[Improvement] Angular 17 - Component - Use new 'styleUrl' property instead of 'styleUrls'

xXNickznXx opened this issue · 1 comments

Angular 17 introduced the new 'styleUrl' property for components, which is also the default when generating with the command.
So it should also be the default in the extension, instead of this:

@Component({
  ...
  styleUrls: ['./[name].component.scss'],
  ...
})

It should be this:

@Component({
  ...
  styleUrl: './[name].component.scss',
  ...
})

Hello,

It is already planned on the roadmap.

Even if it does not apply to this request, one element of clarification: this extension is independent from the Angular CLI. The fact that the Angular CLI does something does not mean that this extension should or will do the same.

Also, this is not a bug, so moving this to Discussions.