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.

$setViewValue() method also change the $modelValue #8131

Closed
@kamalpatel125

Description

@kamalpatel125

Hi There,

I have input text box control where i need display and model value different.
e.g. but instead of personid, i like to show "full name".

For that, I added directive to $setViewValue() for this input control element. But $setViewValue() method also change the $modelValue as well. So I don't see any benefit's of setting viewValue if it is changing the modelValue as well.

Line no : 16690 (AngularJS v1.2.10-build.2164+sha.8b395ff). Also, I checked the latest version and code looks the same.

If you need more information please let me know. Hope someone can help me on this issue.

Thanks

Kamal Patel.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions