Skip to content

Compiler generates references to a deprecated class. #14521

@chuckjaz

Description

@chuckjaz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions