How to create a Model in Marionette?

devquora
devquora

Posted On: Feb 22, 2018

 

The model can be rendered using the backbone Marionette and can be attached to our views. After attaching, it can be used to render the data that they represent.

Example

var Bb = require('backbone');
var MyModel = Bb.Model.extend({
  defaults: {
    name: 'world' }
});

    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....