My Backbone Model is fetching data from an API as JSON
the structure is like:
releases
tracks
length
Now I specifically want to the lenght of a track. How do achieve that?
I tried to do
afterRender: function(){
this.model.get('releases.tracks.length');
console.log(track);
}
but that didnt work, gives me 'undefined'
please help