Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Resetting the events array to a deep clone doesn't re-add the id field #457
Hi, I tried setting the $id to enumerable but it didn't work. It turned out that angular.equals, which angular $watch uses to detect changes when in deep watch ignores properties that start with the dollar sign ($). Therefore, I changed property $id to watchid (I couldn't use _id since I'm already using that field in my application) and set it to enumerable and it worked. Setting to enumerable as you mentioned was required also. This also required changing $id to watchid in all the templates.