Skip to content Skip to sidebar Skip to footer

Loading Collections Into Models In Backbone.js

Here's the goal: I have a parent model. It is in a collection called parents. In a parent is a collection of children. So, when I instantiate the parents collection, I get the pare

Solution 1:

Turns out, there are several different ways to do it. I've opted to instantiate and render the child collection in the initialize method of the parent Model.


Post a Comment for "Loading Collections Into Models In Backbone.js"