Skip to content

Compiler generates references to a deprecated class. #14521

Closed

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.

Activity

  1. added a commit that references this issue on Feb 24, 2017
    a23634d
  2. added a commit that references this issue on Aug 11, 2017
    93287a0
  3. added a commit that references this issue on Aug 28, 2017
    8a9ff08
  4. angular-automatic-lock-bot commented on Sep 10, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  5. locked and limited conversation to collaborators on Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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