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.

add a way to turn on objectEquality for internal watches from a directive or expression. #3790

Closed
@funkjunky

Description

@funkjunky

I have to clone all my array every time I add or remove an element, because I have a textarea that has it's ng-model set to that array and it compares the arrays by reference.

There doesn't appear any way for me to tell the ng-model to use objectEquality, short of rewriting the ng-model directive.

(anyone wondering why I have an array set for the ng-model, it's because I convert from array to text and back to array again using a custom directive [and no, ng-list is not powerful enough for my use case (unless ngList can use regex to compress a list into a tally of items)])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions