Can you give me an fiddle example like comparing two arrays, which will 
have same ids and return true or false for each object comparison using 
angular watch and for each.
Please find Stackoverflow question posted by me here
http://stackoverflow.com/questions/23927109/angular-equals-with-deep-comparison-and-return-difference-on-each-item

On Tuesday, March 26, 2013 11:21:14 PM UTC+5:30, Clint Checketts wrote:
>
> You are correct, it is a boolean to indicate checking the object's value, 
> while false is object reference.
>
> I don't think it exposes the index of any differences if an array changes, 
> so you'd need to iterate along the oldVal and newVal  to find the 
> difference,
>
>
> On Tue, Mar 26, 2013 at 11:33 AM, Miha Valencic <[email protected] 
> <javascript:>> wrote:
>
>> On Tue, Mar 26, 2013 at 6:28 PM, Clint Checketts <[email protected] 
>> <javascript:>> wrote:
>> > Maybe my definition of objectEquality is wrong. Are you asking that the
>> > documentation should be changed or that the variable names should be
>> > clarified?
>>
>> Hi Clint!
>>
>> I obviously misunderstood what objectEquality was for. I was under the
>> impression that I can provide my own function for testing object
>> equality and that default one uses '=='... So, if I understand it
>> correctly now, objectEquality is a boolean value, indicating whether
>> to test two values using value or reference comparison?
>>
>> One more thing: how can I get an "index" of the array element being
>> changed, if the watched element is an array? Is it at all related to
>> watch function?
>>
>> Thanks,
>>  Miha.
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "AngularJS" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/angular?hl=en-US.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to