cyrilletuzi / vscode-angular-schematics

Ultimate Angular code generation in Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=cyrilletuzi.angular-schematics
Other
136 stars 12 forks source link

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

Closed xXNickznXx closed 1 year ago

xXNickznXx commented 1 year ago

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',
  ...
})
cyrilletuzi commented 1 year ago

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.