Reputation: 69
I have yet another question concerning the Backbone.Marionette framework.
Background After reading through the Github docs, and working on an own example here (still in progress). I had decided to take a step back and see how to best implement nested views. This has led to to this post among other things.
The problem plunker here Although this did help me to create a layout, using a single container to display the menu layout, I did not manage to render a layout within a layout. At this point I'm not sure if this is possible at all. But with a large web application it would not seem uncommon to me to have nested layouts?
I get the following error while running the example: TypeError: view is undefined
. This happens when I try to render the views when the application starts. At the moment I'm not competely sure on how to do this.
I hope anyone has some more experience ragrding this subject. I'm fairly new to the framework. Thanks in advance for your time.
Upvotes: 1
Views: 144
Reputation: 14314
The reason you are seeing the error is because you are calling show
on your layout view but not passing it a view to show:
contentLayout.left.show();
contentLayout.right.show();
Upvotes: 3