Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Simple Backbone Example

          <script type="text/javascript">  
const song = Backbone.Model.extend({
defaults:{
  "name": "I love you"
}
})



const AppView =   Backbone.View.extend({
el: $("#content"),

initialize: function()
{
this.$el.html("I AM A VIEW");
}

});
</script>
 
PREVIOUS NEXT
Tagged: #Simple #Backbone #Example
ADD COMMENT
Topic
Name
7+5 =