3 ms·
Rendering Subviews in Backbone.js
- rjzzleep 14y agowell you can also pass el: $(...) as an argument to the view creation which is a bit nicer. or you can just set el: as an initializer in the view. then you don't need to do set the element manually and you will know inside the subview where it's supposed to be.