Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

ngChange: allow locals to be passed from ngModel #14683

Open
@dcherman

Description

@dcherman

Do you want to request a feature or report a bug?

Feature

What is the current behavior?

In order to support transient information (metadata) about the operation that occurred for custom controls that implement ngModel, you have to do something like assign the relevant information to a property on your controller and unset it after the $setViewValue call.

What I'm proposing is the ability to pass a $locals argument to $setViewValue that will then be made available in the ngChange expression if one exists.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions