Closed jrmyio closed 9 years ago
+1
What's the use-case @ConneXNL? Subcollections are intended to be a proxy to a collection for filtering, sorting and paging purposes—a view collection, if you will. The serialize() and toJSON() methods are usually used for persistence purposes.
As subcollection is intended to at least mostly mimic and behave like a collection, it makes sense to me to add these methods. Especially if these folks have a use case.
@AmpersandJS/owners, @AmpersandJS/community-leaders, and @ConneXNL: I'm planning to submit a PR soon that will address public API parity with &-collection. Kamil and Philip, I'll be addressing event bubbling too.
Moving this to appropriate repos
I think the subcollections should really cover serialize() and toJSON().
What is the best way to implement it? I currently copied over the serialize() and toJSON() from ampersand-collection.