Skip to main content

All Questions

0 votes
1 answer
287 views

Underscorejs when used with requirejs returning undefined

I am using requirejs and in one of my files underscore is a dependency. The below is the piece of code to include underscore. define(["lib/underscore"], function(_) { // Here _ is undefined }); ...
kishore's user avatar
  • 1,698
1 vote
2 answers
1k views

How to load a dynamic view css file using requireJs & Backbone

I need that each view will load it's own css file when navigate to the view. currently the css file have been loaded ( I can see it loaded on the network section) but it's not effect the page style ...
the_farmer's user avatar
8 votes
2 answers
814 views

Using Lo-Dash and Underscore simulatenously in RequireJS environment

In a RequireJS environment, what's the best way to allow some AMD modules to use Lo-Dash while others simultaneously use Underscore?
Donald T's user avatar
  • 10.5k
1 vote
1 answer
466 views

Backbone View Render with Loop no data?

I'm currently building a backbone JS page with underscore and require, everything seems to work but my HTML gets renderd the correct number of times but without the data? Please check image at bottom ...
Brent's user avatar
  • 2,445
2 votes
0 answers
209 views

underscore template with require js text plugin not working

So I've this template in a html file - <%= x %> And in one of my view, it's been loaded with help of requirejs. I want to load this template with data. var template = _.template(this....
Gimali's user avatar
  • 787
1 vote
2 answers
1k views

Is it possible to use the most recent versions of JQuery, Underscore and Backbone without RequireJS?

Until now, I had a compatible combination of libraries (JQuery, Underscore, Backbone). They worked without any problems. But these versions are pretty old and I want to upgrade to the newer versions. ...
Miaucl's user avatar
  • 334
1 vote
1 answer
221 views

My underscore template won't render my collection in my Backbone App

I'm new to backbone and have been working on my first app. I've been trying to display a collection through an underscore template, however my content isn't showing up. The template exists in require, ...
Paul Thibedeau's user avatar
0 votes
0 answers
518 views

Dynamic Menus from JSON REST API using backbone.js

I'm newbie in Backbone.js, Marionette.js, underscore.js and require.js frameworks. I'm trying to build a dynamic menu by calling REST API which returns a JSON array format. Here is my JSON response :-...
NaniG's user avatar
  • 119
0 votes
1 answer
719 views

Backbone.js: Collection is undefined when using template [duplicate]

I am currently trying to learn backbone.js on my own. I have looked at the tutorials such as Thomas Davis's @ https://backbonetutorials.com/ and youtube channels. I am trying to make a modular ...
Jason Cidras's user avatar
1 vote
1 answer
334 views

Using UnderscoreJS with RequireJS

I'm trying to use/load UnderscoreJS 1.7.0 with RequireJS 2.1.14-3. At my application startup, UnderscoreJS is well loaded, but it is "undefined". See details below: main.js define(function() { //...
Rémi Doolaeghe's user avatar
0 votes
1 answer
532 views

Template not rendering underscore error

Hi i'm new to backbone using require and underscore. Want to render a template please correct me . Dont know where i'm going wrong. mainParentTemplate.html <div> manojbojja </div> ...
user1837779's user avatar
0 votes
0 answers
122 views

Backbone.js Collection.add method being overwritten by 3rd party script

I am having an issue with a method being overwritten on a dependency that is being injected with Require. Currently I am have a utility that adds and controls some notifacations across our site that ...
westlywright's user avatar
0 votes
0 answers
131 views

Issue with r.js optimizer and Underscore _.template() function

I have an issue with Underscore (I use an old version [1.3.3] and can't use others for this project) _.template() function after creating optimized build. After optimizing I have a file with all my ...
LordotU's user avatar
  • 43
-1 votes
1 answer
683 views

using underscore templates with Backbone and Require.js

I'm trying to create a simple app using underscore templates and backbone (as described in this article). I'm sure that the template file is being loaded correctly, but I'm not so sure whether I'm ...
Wracker's user avatar
  • 609
-1 votes
2 answers
593 views

Loading templates with underscore gives error

I have a requirejs webapp which loads a lot of libraries (it is rather complicated to jsfiddle the loading). The bottom point though is: console.log(_.VERSION); _.template("<p>"); In the ...
arisalexis's user avatar
  • 2,150

15 30 50 per page
1
2
3 4 5
10