Skip to content

extended diagnostics: show warning if component variable is shadowed by template reference #45227

@atscott

Description

@atscott

Which @angular/* package(s) are relevant/related to the feature request?

compiler-cli

Description

Re-opening #15956 as a feature request for extended diagnostics. With the introduction of the extended diagnostics in the compiler, this warning would fit quite nicely and would be possible there.

class Comopnent {
     public name:string;
}

<div #name="ngName">
</div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: compilerIssues related to `ngc`, Angular's template compilercompiler: extended diagnosticsfeatureIssue that requests a new featurefeature: under considerationFeature request for which voting has completed and the request is now under considerationhelp wantedAn issue that is suitable for a community contributor (based on its complexity/scope).

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions