You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
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)])
The text was updated successfully, but these errors were encountered:
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)])
The text was updated successfully, but these errors were encountered: