Questions tagged [durandal-2.0]

A cross-device, cross-platform client framework written in JavaScript and designed to make building and maintaining Single Page Applications (SPAs) faster and easier.

Durandal

A cross-device, cross-platform client framework written in JavaScript and designed to make building and maintaining Single Page Applications (SPAs) faster and easier. Visit the project site.

Features

  • Clean MV* Architecture
  • JS & HTML Modularity
  • Simple App Lifecycle
  • Eventing, Modals, Message Boxes, etc.
  • Navigation & Screen State Management
  • Consistent Async Programming w/ Promises
  • App Bundling and Optimization
  • Use any Backend Technology
  • Built on top of jQuery, Knockout & RequireJS
  • Integrates with popular CSS libraries such as Bootstrap and Foundation
  • Make Your Own Templatable and Bindable Widgets

Browser Support

  • IE 6+
  • Firefox 2+
  • Safari 3.2+
  • Chrome 3+
  • Opera 10+

Dependencies

  • jQuery >= 1.8.0
  • Knockout >= 2.2.1
  • RequireJS >= 2.0.0
284 questions
20
votes
1 answer

Configure child router to compose modules in parent router viewport html binding

Objective: I want the segregation and encapsulation benefits of utilizing child routers to organize routes by significant feature areas of the app. However, I want to have those routes handled and composed by the parent router viewport binding. i.e…
Matthew Cox
  • 13,566
  • 9
  • 54
  • 72
14
votes
2 answers

Durandal JS knockout Deferred updates

I am having an issue when enabling deferred updates in the knockout library. I have implemented Jquery datatables as a component, when navigating to a view that has this component i can see the following methods being called in…
Darryn Hosking
  • 3,118
  • 2
  • 20
  • 20
10
votes
2 answers

Durandal: Showing a 'LOADING...' during composition

I can easily show a loading message while the activate method is doing its thing like so:
Shaun Rowan
  • 9,269
  • 4
  • 28
  • 52
10
votes
1 answer

Get selected values from dynamically created dropdowns

I'm using KnockoutJS and durandalJS 2.0. I'm dynamically adding two drop-downs based on the database table entries and populating them with data form another table. Each drop-down also has a check-box. How do I get the selected drop-down…
IRONMAN
  • 168
  • 1
  • 10
8
votes
1 answer

Phonegap 2.9.0, Windows Phone 8, Durandal 2.0, XAP runtime issue

We've been trying to get our PhoneGap 2.9, Durandal 2.0 application working on Windows Phone 8. We've been able to follow the steps to deploy the application to the emulator and to the device via visual studio. However, we have a problem with the…
Laurence C
  • 378
  • 2
  • 12
7
votes
1 answer

How to handle script errors in Durandal SPA

When you get a script error somewhere in your SPA code, entire app becomes totally unresponsive and you cannot navigate to any other pages(views). It seems durandal just freezes! (only way out is to hit refresh to start SPA again) What are some good…
Binu
  • 145
  • 7
6
votes
0 answers

Post-Build Event in VS2012 with NodeJS/GulpJS Code 255 on Publish

I'm trying to get a pre-build event setup in visual studio 2012 for compressing my Durandaljs app using Gulp. After much frustration with the pre/post build command line I have it working if I build the project. It runs node/gulp as expected. My…
Particleman
  • 661
  • 2
  • 7
  • 19
6
votes
1 answer

Route Not found error in Durandal child route

I am getting "route not found" when I try to use child routing. To cover my bases, here is how the routing in the application is designed. The main.js file contains routing for the top navigation and is done as- router.map([ …
5
votes
1 answer

Durandal - View Not Found. Searched for "/" on intermittent

I wonder if anyone has had a similar problem with Durandal.js. I am getting an intermittent "View Not Found. Searched for" error, which is hard to replicate as only happens very occasionally. It appears to spawn from the file viewEngine.js when the…
rjmacarthy
  • 2,164
  • 1
  • 13
  • 22
5
votes
1 answer

Durandal 2.0 custom dialog

I wish to make a Durandal custom dialog that adds a window frame with title and footer around an existing composable viewmodel. I have made a customModal.html template
5
votes
1 answer

Durandal router / lifecycle events when using a childRouter

In a single page app built using Durandal, I have a settings view, with different sections. I use a childRouter to resolve the different sections. In this application, a lot of code hooks into the composition lifecycle events that Durandal uses. For…
Hans Roerdinkholder
  • 3,000
  • 1
  • 20
  • 30
5
votes
5 answers

How to handle 404 errors from Requirejs

I am currently trying to identify the best way to handle different errors within a Durandal application. One scenario I am testing is where the required module does not exist, i.e. define(['dummy'], function (Dummy) { return {}; }); where dummy…
Gary F
  • 360
  • 3
  • 12
4
votes
3 answers

Bundling and Minifying Durandal Applications

I'm using MVC5/Durandal and wondering what the recommended approach to bundling/minifying a durandal application would be. Ive seen docs on using Weyland but will be deploying to an Azure Website and don't see how to leverage this in my .net-based…
SB2055
  • 12,272
  • 32
  • 97
  • 202
4
votes
1 answer

Is it possible to break out of a ko foreach binding before rendering is completed?

this is my first post on SO, so please go easy on me :) I am building a web app with Durandal.js and I have a situation where I am running a simple knockout foreach data-bind that iterates over a ko.observableArray and composes child views for each…
jbgarr
  • 1,378
  • 1
  • 12
  • 23
4
votes
1 answer

Durandal 2 / activate method called only once in child route

In a Durandal 2.x app I have a view that needs to fetch new data every time the user navigates to it. This view is served through a child router: define(['plugins/router'], function(router) { var vm = {}; vm.router =…
Sergi Papaseit
  • 15,999
  • 16
  • 67
  • 101
1
2 3
18 19