I have a model, let's call it "modelA", which has a nested "collectionX" of say "modelB".
When working with a modelB instance, I can easily access its siblings or its collection's meta data using this.collection
.
How can I access attributes of the parent model (modelA)?
There is no default way to do this is backbone. Just add the modelA attribute to the collection and access it within modelB.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With