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
Description
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.