backbone-relational Questions
2
Solved
After another long research, sth comes out :-) It seems the problem is about the function "getObjectByName". It can not work well with requireJS(ADM). Currently, I have to setup a globel var to fix...
Kashakashden asked 12/4, 2013 at 16:43
3
I have been looking for information about how can we build relationship in Backbone and came across following two nice plugins:
Backbone-relational
Backbone-associations
Both seems to have exis...
Zante asked 12/8, 2014 at 5:49
4
Solved
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-man...
Irisirisa asked 29/8, 2011 at 8:4
4
I am new to BackboneJS and I am stuck with nested relations using Backbone-relational Model with RequireJS -I think I runned into circular issues. Any help will be highly appreciated!
I have the f...
Koodoo asked 1/4, 2012 at 7:33
3
I got a wtf problem that I can't figure out. I explain :
I have a model named Product :
var Product = Backbone.RelationalModel.extend(
{
urlRoot: Backbone.rootApiUrl + '/products',
defaults: {
i...
Keneth asked 29/3, 2014 at 2:37
2
I have two models (User and Task) which are instances of Backbone.RelationalModel.
The relation about these two models is the following:
// Task model
var Task = Backbone.RelationalModel.exten...
Norway asked 29/6, 2012 at 9:57
1
I am new to Backbone-relational, I am not sure what is the right way to use HasMany.
I have a Parent model which have many children (by "many" I mean thousands of children). In order to avoid perf...
Desquamate asked 11/4, 2013 at 16:46
3
Solved
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 Back...
Croup asked 9/1, 2012 at 0:3
2
Solved
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, a...
Oscilloscope asked 23/7, 2013 at 13:22
3
I have been using backbone relational (https://github.com/PaulUithol/Backbone-relational) to build my application because I have a model (Room) with lots of other models attached:
Room has many C...
Pitcher asked 21/9, 2012 at 15:2
2
Solved
I've been trying to follow the example here: Creating nested models with backboneJS + backbone-relational + requireJS
And ended up having something different (since I need a Backbone.Collection, n...
Raseta asked 2/6, 2013 at 18:47
3
Let's suppose I have two simple fixture files, one for the user(1) and one for the messages(2).
The Backbone Model for the messages is the following (3).
If I load the "Message Fixture", I woul...
Alow asked 14/8, 2012 at 14:23
1
Solved
I'm trying to find a way to use Backbone-relational submodels with RequireJS, where the submodels are in different files than the supermodel.
For example:
// app.js
define(function() {
var app =...
Wire asked 7/11, 2012 at 19:2
1
Solved
I am trying to implement BackboneRelational and keep getting
"Cannot instantiate more than one Backbone.RelationalModel with the
same id per type!"
class App.Models.User extends Backbone.Rel...
Steele asked 1/9, 2012 at 1:11
1
Solved
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...
Slumber asked 15/8, 2012 at 17:33
2
Solved
I have the following Backbone router definition in CoffeeScript:
// appointments_router.js.coffee
define ["app", "appointment"], (App) ->
class Snip.Routers.AppointmentsRouter extends Backbone...
Cointreau asked 14/8, 2012 at 15:6
1
I have Class Diagram looking like this :
ModelA 1------* ModelB 1------* ModelC 1------* ModelD
Edit :
The Data looks like that
Data :
{ "Titel" : "ModelA",
"ModelA" : [
{
"Titel" : "Model...
Pectinate asked 10/2, 2012 at 9:37
1
Solved
Can a Backbone.js View have a Model and a Collection?
The reason I am asking is because I'm working with a View that holds a map with places plotted on it (using the leaflet library).
The Collect...
Computation asked 23/7, 2012 at 22:3
2
Solved
I have an Appointment model, each instance of which has a Client. Here's my template for editing an appointment:
<form id="edit-appointment" name="appointment" class="mobile_friendly">
<...
Hereinbefore asked 10/7, 2012 at 13:22
2
Solved
I would like to make a relation between two models User and Task using backbone-relational.
The relation between the two models is the following:
taskModel.creator_id = userModel.id
// Task...
Dipterocarpaceous asked 5/7, 2012 at 14:47
1
Solved
I've been using Marionette for a couple of weeks and just discovered Backbone Relational so I'm trying to figure out how to integrate the two. Ideally, I would like to use a composite view to rende...
Jacob asked 5/7, 2012 at 19:58
1
I would like to use RelationalModel using requireJs.
Here my code(*)
When I run my module, I get the following warning message:
Relation=d;
no model, key or relatedModel (function (){a.apply(th...
Isocyanide asked 27/6, 2012 at 11:9
2
Solved
Please correct me if I am wrong, but is one complex query less expensive than multiple small queries -> Question? Seems the question listed has opposing views. I was always taught that the most exp...
Clique asked 7/6, 2012 at 7:13
2
I'm stuck with how to design my backbone.js application regarding to my model relationships.
If I have an event model , that has a couple of relationships, say a user model can have many ev...
Mithridate asked 3/6, 2012 at 15:1
2
Solved
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 s...
Instead asked 15/3, 2012 at 6:56
1 Next >
© 2022 - 2024 — McMap. All rights reserved.