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
0
votes
1 answer

Uncaught Error: Script error for: durandal/router

I am trying to use the durandal router, but I have these 2 errors on my console: Uncaught Error: Script error for: durandal/router and of course this: Failed to load resource: the server responded with a status of 404 (Not Found) which is very self…
Luis Valencia
  • 32,619
  • 93
  • 286
  • 506
0
votes
1 answer

How to list students for every course in knockout and durandal in SPA

Here is my class : public class Course : BaseEntity { public string Name { get; set; } public string Description { get; set; } public virtual int? TeacherId { get; set; } public virtual Teacher Teacher { get;…
smurf
  • 1
  • 1
0
votes
1 answer

Wrapping a control into a Durandal Widget

I posted this onto the durandal discussion groups, but want to cover my bases on it: https://groups.google.com/forum/#!topic/durandaljs/PWgPUHcpzic Basically, I want to see if anyone has successfully wrapped an existing control that is the…
Richard B
  • 1,581
  • 1
  • 15
  • 31
0
votes
0 answers

Knockout Custom Binding - Works in jsfiddle, but not in Durandal

Absolutely love Durandal's architecture/clarity. But have ran into trouble getting durandal 2.0.1 to recognize any custom knockout binding. My example View contains:
The binding is defined within an appBindings.js that…
Ciel
  • 591
  • 4
  • 12
0
votes
1 answer

Allowing user Re-size durandal dialog box

I have a durandal dialog box, i want user to be able to increase or decrease the size of the box . Please note that i am not asking for adjusting the width automatically depending on the contents inside the box. I am actually asking how i can allow…
user3117281
  • 61
  • 1
  • 7
0
votes
0 answers

How to Unit Test a Durandal View

I'd like to test the binding of a durandal view to it's viewmodel; to ensure that the property names on the view and viewmodel are in sync. Ideally using the durandal composition engine in order to include any plugins that are enabled (mainly…
Adam Mills
  • 7,719
  • 3
  • 31
  • 47
0
votes
1 answer

Setting dynamic page titles in Durandal 2.1.0

I use an observable inside the updateDocumentTitle function that gets a new value after completing an ajax request. But I noticed that the updateDocumentTitle function doesn't fire again after the observable changes its…
Norbert
  • 2,741
  • 8
  • 56
  • 111
0
votes
2 answers

Breeze and Durandal observable plugin

I have been experimenting with the Hot Towel SPA and was successful in getting a view model and view to work using the ko.observables. The results from a call to the Breeze executeQuery are loaded into the observable using myObservable(data.results)…
Alan Rutter
  • 321
  • 4
  • 16
0
votes
1 answer

Durandal 2.0 Dialog Repositioning

At the bottom of the durandal docs for dialogs / modals (http://durandaljs.com/documentation/Showing-Message-Boxes-And-Modals.html) there's some syntax for repositioning a dialog. The dialog I have gets gradually bigger as the user selects stuff,…
SB2055
  • 12,272
  • 32
  • 97
  • 202
0
votes
1 answer

DurandalJS - Enforcing Full Activation Cycle on Page Root (aka: fire "deactivate" on app.setRoot())

[Edit] There's also Google Groups thread over here. I'll try to keep both updated as I learn more. According to the Durandal Documentation the page Root View Model only implements limited Activator functionality. Specifically, it states…
0
votes
1 answer

Durandal dialog Call back Function

In my view model I have a grid, if user click on Edit button on the row it will popup a dialog with row values, if user click on Edit button will close the dialog then I need to reload the grid. My model look like below, I my case I am not able to…
rook ....
  • 156
  • 2
  • 14
0
votes
1 answer

Breeze query using withParameters and expand, not expanding

I needed to implement some business logic on the server side during the process of fetching entities to ensure that the user had permission to the item being retrieved. To accomplish this, my client-side breeze query code changed from something…
George Durzi
  • 1,632
  • 1
  • 19
  • 31
0
votes
1 answer

Durandal local caching

I am building a SPA using DURANDAL and Asp.Net WEB API. I would like to retrieve a dictionary table (lookup table) and cache it on the client side.. basically have a viewmodel with a dictionary: ko.observableArray([]) and access that in any other…
Gabriel
  • 15
  • 1
  • 6
0
votes
1 answer

DurandalJs ignore anchor with #

I'm trying to implement Zurb Foundation tabs in a DurandalJS app. Zurb Foundation uses # in their tab HTML structure. The # is used to link tab with it's contents.
Tom Schreck
  • 5,177
  • 12
  • 68
  • 122
0
votes
1 answer

Durandal 2 upgrade redirect issue

Hello and thanks for taking a look at my issue. I have been migrating my SPA application to use the Durandal 2.0 library, following the sage advice from my oft savior, John Papa. And now that I have completed the upgrade process, I find a strange…