I am confused by the Marionette (2.3.0) documentation from the link below that says the Application Regions feature is deprecated. A Layout View should be used instead. Does that mean I should not use MyApp.addRegions()
any more? Then how should I add my Layout View to my application?
http://marionettejs.com/docs/marionette.application.html#application-regions
Application Regions
Warning: deprecated This feature is deprecated. Instead of using the Application as the root of your view tree, you should use a Layout View. To scope your Layout View to the entire document, you could set its el to 'body'. This might look something like the following:
var RootView = Marionette.LayoutView.extend({ el: 'body' });
I will like to explain with a very simple example the usage of layout view in marionette.
html
JS Code:--
Please note I was trying without el element earlier , but i got no luck and as I used el:"#someElem" life got easier