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

How to activate modal view before any views activated

I'm hooking the canActivate callback to load a login model/view. My welcome view shows the login dialog in the activate callback, which works just fine. I would like to block activation of all views with the login, rather than simply calling it…
Dania_es
  • 1,026
  • 1
  • 10
  • 20
0
votes
1 answer

Durandal: how to cache calls?

In my durandal app I need to know if the user is logged in different places. So currently i'm doing a call to get the user state in every views that needs it. Is possible to do something like this: //login.js define(function(require) { var http =…
Pietro Coelho
  • 1,894
  • 1
  • 26
  • 34
0
votes
2 answers

Durandal requiring viewmodel from shell

In my app, I have a global player. In the shell module, I require the viewmodel of the player because I want to know if the player is playing, and if so, I add a class to container of the app (which is in the shell). The problem is that I also need…
Pietro Coelho
  • 1,894
  • 1
  • 26
  • 34
0
votes
2 answers

Kendo Grid misbehaving in certain situations with Durandal/RequireJS

BACKGROUND: I have an existing site which makes use of the following technologies: ASP.NET MVC5, KnockoutJS, Kendo UI 2014.1.318 Web API 2 OData v3 There are many Kendo Grids on my site, all working perfectly fine. Until now, that is... when I…
Matt
  • 6,787
  • 11
  • 65
  • 112
0
votes
1 answer

How to force activate when using routes with same module id in durandal?

So this is how i build my routes [{ route: 'Phone/:isWidget', moduleId: 'commonLog', title: 'phoneTitle', nav: true, hash: '#Phone', settings: { Communication: true } }, { route:…
Ibrahim Ahmed
  • 2,295
  • 4
  • 21
  • 35
0
votes
1 answer

How can I convert this knockout view model to be Durandal compliant?

I have a system built on KnockoutJS and I am now trying to take advantage of Durandal. I have figured out how to make MVC routes play nicely with it and so am now quite comfortable in that respect. However, I am a little bit confused about the view…
Matt
  • 6,787
  • 11
  • 65
  • 112
0
votes
1 answer

Durandal and a plugin architecture

I am learning Durandal 2 in the hopes of converting my CMS' admin backend into an SPA. I managed to get Durandal to work with the MVC routes and all, but there's one big hiccup I have run into which may be a showstopper here. I have a plugin…
Matt
  • 6,787
  • 11
  • 65
  • 112
0
votes
1 answer

Durandal compose change value of a variable of bound viewmodel

In my app, I have a section called 'notifications' inside a view, called 'home.html'. Now I need to use this section in another view, so I copied all the notifications markup inside 'notifications.html', that I'm using through composition. The…
Pietro Coelho
  • 1,894
  • 1
  • 26
  • 34
0
votes
0 answers

Model structure in Durandal resembling "classes"

I'm fairly new to Durandal, Knockout and Requirejs, so I wanted to ask some opinions whether my structure makes sense or not: I've been planning to create models for my data objects, like classes in class-based languages. therefore i would be…
Martin
  • 1,112
  • 1
  • 11
  • 31
0
votes
1 answer

Breeze optimistic concurrency exception saving datetime

Here a tricky issue I have with breeze, entity framework and a datetime field. I get an optimistic concurrency exception when saving the entity due to the date field having the current microseconds added to it on entering and on leaving the breeze…
0
votes
1 answer

How to run scripts in Durandal View

I have a Durandal App. On one of the pages, I need to using some existing javascript which I do not want to modify. However, if I use something like this in the view.html: the alert is not triggered. Normally such…
Greg Gum
  • 33,478
  • 39
  • 162
  • 233
0
votes
1 answer

Durandal router cacheViews not working (v2.1.0)

I am trying to figure out how to use the Durandal v2.1.0 router to navigate between views using the router.navigate(); function. I have been able to navigate back and forth between two views but each time the view is recreated. I want to be able to…
husterk
  • 184
  • 1
  • 10
0
votes
0 answers

Durandal Composition Binding with canDeactivate

I am using Durandal 2.1, and I am having a problem with view composition. I have a view for managing many types of items. I also want a view to manage a subset of those types. So I created a manage view and a managesubset view. The managesubset view…
Zach Green
  • 3,421
  • 4
  • 29
  • 32
0
votes
1 answer

(0x800a138f) Unhandled exception in IE8 after adding BreezeJS to Durandal project

I'm hoping someone with some experience in Breeze/Durandal 2 on .NET 4.0 will be able to assist me with this error, as I'm pretty new to the mix. I've been working on a Durandal 2/KO/Require SPA project that lately has been compiling fine and…
0
votes
2 answers

Application ViewModel

How should application wide data be managed in a Durandal app? For example, after the user logs in, I need to persist the UserName and UserId. What I have tried is creating a singleton viewModel, and then import it where it is…
Greg Gum
  • 33,478
  • 39
  • 162
  • 233