This repository was archived by the owner on Apr 12, 2024. It is now read-only.
filterFilter compare custom objects in 1.3.6 #10464
Closed
Description
First off all I am a big fan of the changed behavior as I can do finally filtering complex data as I could in angular 1.0.x
Only the default comparator should not return false if actual or expected is an object.
My use case are mongodb ObjectIds with a custom toString function.
From angular 1.0 to 1.3.5 the filterFilter could compare this custom object with a string or another ObjectId.
I know I can use my one comparator but i think the new comparator is a bit to picky.
A string like '[object'
is in my opinion a user error.
WDYT?