I have multiple backbone views that make up a screen, currently I am doing it like this:
render : function() {
this.$el.html(this.template());
this.view2 = new View2();
this.view2.render();
this.$el.append(this.view2.$el);
... more views added here as necessary
}
Is this the correct way to handle multiple views or is there a better way to attach views to the current view?
I want to be able to destory and recreate a view with the relevant HTML getting removed/added from the parent view without having to manually do it.