-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Compiler generates references to a deprecated class. #14521
Copy link
Copy link
Closed
Description
I'm submitting a ... (check one with "x")
[x] bug report => search github for a similar issue or PR before submitting
Current behavior
When using *ngFor, the compiler will generate a reference to NgFor in the provider for the component. NgFor is deprecated in favor of NgForOf<T> and will issue warning if the code is checked for references to deprecated symbols.
Expected behavior
The compiler should only generated references to deprecated classes only if a depreciated class is declared or imported into the module it is declared in and part of the template matches the selector for the component or directive.
Minimal reproduction of the problem with instructions
Any template with a *ngFor.
What is the motivation / use case for changing the behavior?
Avoiding deprecated references.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels