Skip to content

beta.16 (click)="foo = []" error: "Unsupported number of argument for pure functions" #8336

@KiaraGrouwstra

Description

@KiaraGrouwstra

I had snippets in my templates like <button (click)="foo = []">clear foo</button>. After upgrading from beta 15 to 16, such actions in assignment format (foo = []) now throw with the following error: Unsupported number of argument for pure functions: 0, and would need to be refactored to method calls. Plunker here -- if you change the angular version to 15 it works.

If this break was intentional, then so be it, but I hadn't been under the impression I'd seen mention of changes like this in the log. If I didn't just miss it in the changelog, I wonder if that means this change was an unintended side-effect of recent refactoring.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions