In Ember I can use this:  App.Router.map(function() {     this.route('accomodations'); });   so if one goes to /accomodations it will load that view.  I can also add:    App.Router.map(function() {     this.route('accomodations', { pa...
I am using UI-Router and need a subview in another view.  I need to render the "owner" view within the "dog" view.  The following works for that purpose:  UI-Router config is as follows  .state('dogAbstract', {     url: '/...
I've been playing with CouchDB (and the RelaxDB ruby library) but creating a view and then trying to access it causes a nasty non specific error. I stepped back a step because I thought RelaxDB might be incompatible with the CouchDB version I'...
I have a happy javascript based client that talks to my Django server-side code. I use several XMLHttpRequests for interactions and everything is fine there.  Now there is one user interaction where I'd like to receive user-sent info at the serve...
Do you initialize your Backbone views from within a model or elsewhere?   I'm trying to figure out what the best way to organize model/views. Does it make sense to have your models initialize the views?   Thanks for any info!...
I have two backbone views defined in two separate files namely:   LandingView.js  define([     'jquery',     'underscore',     'backbone',     'marionette',     'text!templates/landing/landingTemplate.html',...
So i'm very new to backbone.js and not so good at JavaScript in general, so I was wondering if someone could explain to me why   I cannot define my EL property, and Template property in my view, and then use this.template in my render.  Instead I...
I'm thinking about the optimal way to structure my Backbone application. The problem is that I have various complex states, each made by some views showing while all the others are hidden.  What is the canonical way to handle this in Backbone? Tw...
I'm working on a Backbone.js web application with a few different views.  Let's say we have the AudioPlayer view at the top of the page that should be persistent and play audio while the rest of the page content changes.  The rest of the page...
In one of the example i picked from SO answers here and many BackBoneJs examples i see that the initialize function knows which view the model is going to be rendered with. I don't know i am kind of biased now, is this a good practice or it depen...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.