Skip to content

feat(compiler): [property]="{{foo}}" should raise an exception #3645

@jeffbcross

Description

@jeffbcross

Some users during a hack night were trying to set properties this way. Since {{foo}} would never be a valid expression, the compiler should raise a helpful exception when this pattern is found. Since this pattern is predictable, the exception should give specific feedback.

My suggestion: {{foo}} is not a valid expression in [prop]="{{foo}}". Try [prop]="foo"

CC: @mhevery

Related: #3662 (should be done together)

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort1: hoursfeatureIssue that requests a new featurehelp wantedAn issue that is suitable for a community contributor (based on its complexity/scope).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions