Top "Backbone.js" questions

Backbone.

Backbone.js get and set nested object attribute

I have a simple question about Backbone.js' get and set functions. 1) With the code below, how can I 'get' …

javascript backbone.js backbone-model
Setting id and className dynamically in Backbone.js views

I am in process of learning and using Backbone.js. I have an Item model and a corresponding Item view. …

javascript backbone.js
External template in Underscore

I use Underscore template. It is possible to attach a external file as template? In Backbone View I have: textTemplate: _.…

javascript backbone.js underscore.js
Delete multiple records using REST

What is the REST-ful way of deleting multiple items? My use case is that I have a Backbone Collection wherein …

api rest backbone.js
Backbone.js: get current route

Using Backbone, is it possible for me to get the name of the current route? I know how to bind …

backbone.js
Expected a spy, but got Function

I am trying to implement a test (1) for this module (2). My purpose is to check if the collection is fetched …

javascript backbone.js jasmine marionette
How to render and append sub-views in Backbone.js

I have a nested-View setup which can get somewhat deep in my application. There are a bunch of ways I …

javascript model-view-controller backbone.js
Why define an anonymous function and pass it jQuery as the argument?

I'm looking through the excellent peepcode demo code from the backbone.js screencasts. In it, the backbone code is all …

javascript jquery backbone.js
Separate REST JSON API server and client?

I'm about to create a bunch of web apps from scratch. (See http://50pop.com/code for overview.) I'd like …

ruby-on-rails-3 rest backbone.js sinatra ember.js
Loading Backbone and Underscore using RequireJS

I'm trying to load Backbone and Underscore (as well as jQuery) with RequireJS. With the latest versions of Backbone and …

javascript backbone.js underscore.js requirejs