Explain what is ModelBinder in Backbone.js?

devquora
devquora

Posted On: Feb 22, 2018

 

ModelBinder is a class in Backbone.js to bind backbone model attributes to:

  • Read-only html elements such as <span>, <div> etc.
  • Html element attributes such as enabled, displayed, style etc.
  • Editable form elements such as <input>, <textarea> etc. This type of binding is bidirectional between the HTML elements and the Model’s attributes.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Backbone js Interview Questions

    Explain what is Backbonejs?

    Backbone.js is a client-side (Model, View, Controller) MVC-based JavaScript framework.It purely is written in Javascrip..

    Backbone js Interview Questions

    List Dependencies of using BackboneJs?

    Backbone’s Js only hard dependency is Underscore.js ( &gt;= 1.8.3). For RESTful persistence and DOM manipulation with..

    Backbone js Interview Questions

    What is the use of BackboneJS route?

    The Backbone.js router is used to change the URL fragment or hashes of an application to create bookmarkable and shareab..