Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated components #1995

Open
Mr1008 opened this issue Feb 1, 2024 · 0 comments
Open

Deprecated components #1995

Mr1008 opened this issue Feb 1, 2024 · 0 comments
Labels

Comments

@Mr1008
Copy link

Mr1008 commented Feb 1, 2024

🚀 feature request

Description

Currently there is no way of marking components as deprecated. It would be cool if template editor supported standard way how deprecated code should be marked in TS/JS, using JSDoc @deprecated feature.
This would help working in enterprise grade environment when there are multiple components and some of these should no longer be used. Currently it is very easy to forget/overlook such usage. Displaying it somehow in editor in straightforward way would help a lot.

Feature Type

Display somehow that component is deprecated.

Describe the solution you'd like

I believe the standard way of displaying would be fine, similar way as vscode does for TS/JS code. Currently WebStorm supports it and it looks like in the screenshot:
image

It supports standard way of marking elements as deprecated using JSDoc @deprecated feature.
For example:

/**
 * @deprecated DO NOT USE THIS TABLE.
 */
@Component({
  selector: 'app-table-old',
  templateUrl: './old-table.component.html',
  styleUrls: ['./old-table.component.scss']
})
@Mr1008 Mr1008 added the feature label Feb 1, 2024
@Mr1008 Mr1008 changed the title eprecated components Deprecated components Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant