Top "Requirejs" questions

RequireJS is a JavaScript file and module loader.

Understanding when and how to use Require.JS

I've just begun to work with Require.JS and I'm a bit unclear on the appropriate cases in which it …

javascript requirejs
Shim Twitter Bootstrap for RequireJS

The RequireJS docs say that to support older versions of IE, you need to configure enforceDefine: true. So if you …

twitter-bootstrap requirejs
How to handle circular dependencies with RequireJS/AMD?

In my system, I have a number of "classes" loaded in the browser each a separate files during development, and …

javascript commonjs requirejs
ng-model for input type 'number' not working angularjs

I have integrated requirejs with angular app.. before intregrating requirejs, <input type="number" value="{{cart.quantity}}" ng-model="cart.quantity" /&…

javascript angularjs requirejs
Explanation of define of the RequireJS library

I started to read several tutorials about RequireJS. In none of them was the "define" keyword explained satisfactorily for me. …

javascript requirejs
RequireJS relative paths

I'm new to RequireJS. I'm writing a number of custom bindings in Knockout.js and want to split them up …

javascript requirejs
RequireJs - Define vs Require

For modules I don't return an object I have been using require instead of define. For example say I have …

javascript requirejs
How to change module timeout in Require.js?

When I am on slow mobile broadband I sometimes get: Uncaught Error: Load timeout for modules: goog!maps,3,other_params:…

requirejs
How to load bootstrapped models in Backbone.js while using AMD (require.js)

Backbone.js documentation suggest loading bootstrapped models this way: <script> var Accounts = new Backbone.Collection; Accounts.reset(<%= @…

javascript backbone.js requirejs js-amd
Dependency injection in TypeScript

I'm looking into the possibilities to do TDD with TypeScript. If I write my tests in TypeScript, is it possible …

tdd requirejs typescript amd