How can you intialize Marionette.js ?

devquora
devquora

Posted On: Feb 22, 2018

 

The Backbone.Marionette.Application object is used to initialize among other things the various pieces of your application. The Initialize is called immediately after the application has been instantiated. It is invoked with the same arguments that the constructor received.

Example

var MyApp = Marionette.Application.extend({
  initialize: function(options) {
    console.log(options.container);  } });
var myApp = new MyApp({container: '#app'});

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Marionette js Interview Questions

    What is Marionette.js ?

    Marionette.js is a composite application library for the Backbone.js. It simplifies the construction of the large-scale JavaScript applications. It is nothing but a collection of the common design and...

    Marionette js Interview Questions

    List some features of Marionette.js ?

    Features of Marionette.jsIt is scalable as the applications built-in modules with event-driven architecture. It is easily modifiable. It works with the specific need of your application. It has ...

    Marionette js Interview Questions

    What is current stable version of Marionette.js ?

    v4.1.2 is the current stable version of MarionetteJS....