class TheModel extends Backbone.RelationalModel     relations:[         type: Backbone.HasMany         key: 'subModels'         relatedModel: SubModel         collectionType: SubModels         reverseRelation:             key: 'TheModel&#...
I have the following Backbone router definition in CoffeeScript:  // appointments_router.js.coffee define ["app", "appointment"], (App) ->   class Snip.Routers.AppointmentsRouter extends Backbone.Router     initialize: (options) -&...
I would like to use backbone-relational to have nested models in my backbone.js application.    I have been able to follow the examples in the documentation to create nested objects (e.g. one-to-many relations).  However I don't understand how to...
I'm relativly new to Backbone.js  I have a JSON like the picture shows !  I saw some Answers in relation with Backbone-relational, but still dont get the point!  How can i convert this JSON to Backbone.js Collections/Models??   I update with a co...
I think I may have a fundamental misunderstanding of how Marionette.Layout is intended to be used.  I'm trying to something like this:    The layout includes two Marinotette.ItemViews: The "Explode" ItemView and the "PopStar" Item...
I have a simple application which defines two classes, a Person and a PersonGroup, wherein there is a many-to-many relationship in place.  A Person can have no group, or be assigned to all groups, and anything in between.  The example on backbonerela...
Been trying to get this up and running for a while now. Basically i have a rest api as backend that returns json, all fine.  The problem i have is with backbone-relational. I'm sure i've just got something wrong but i've been searching th...
I need to destroy backbone relational model on client side, without performing any http requests. Under "destroy" word i mean removing model from all collections, removing all relations from other models to current one, and finally, removing...
I've got backbone-relational working fairly well so far.  I have relationships and reverse relationships well established (see below).  When I initially call .fetch() on my Country model instance, the nominees array is parsed out into nominee mod...
I'm using Backbone relational and it's great. The problem I have run into is when I need the backend to provide the url for models to attach to.  This isn't such a problem when using one-to-one relationships because the model can hold ont...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.