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
2
votes
2 answers

Durandal 2.0 "routes"

I'm a Beginner trying to learn SPA / Durandal, Knockout etc... Need some help with my routes for a Admin drop down button. Here are my routes in the shell.js so far: var routes = [ { route: '', moduleId: 'home', title: 'Home', nav: 1 }, …
2
votes
1 answer

Asterisk (*) in Durandal route

What is the purpose of the asterisk in Durandal routes? Here is an example from the Docs: route:'knockout-samples*details' EDIT: Using Durandal 2.0
2
votes
1 answer

durandal router.navigate not working

I need to navigate to another view from a event handler in my code, I do it like this define(['durandal/system', 'durandal/app', 'durandal/viewLocator', 'plugins/router', 'underscore'], function (system, app, viewLocator, router, _) { …
imgen
  • 2,803
  • 7
  • 44
  • 64
1
vote
1 answer

Binding lifecycle called for the removed views on navigating to any route : Durandal

In my Durandal application, I have configured several parent routers and for some of it , there are child routers configured. The problem is, when the user navigates between different parent pages or the child pages, then binding lifecycle of the…
Senthil Kumar
  • 373
  • 1
  • 3
  • 8
1
vote
0 answers

KnockoutJs + DataTables Server side binding + ButtonEvent

I have a KnockoutJs and DataTables project. All data is coming server-side. My Question is this: In one column we have a button with a data-bind="click: someFunction" Obviously this is not getting called because the page is already bound before the…
JCircio
  • 525
  • 2
  • 7
  • 18
1
vote
1 answer

.NET Bundle & Minifier

We currently have an older-er .NET MVC 5 app running in production using server side to render the views and client side DurandalJs. We are using weyland.js to minify the APP/viewmodels directory (and others) that Require.JS will "inject". I am…
JCircio
  • 525
  • 2
  • 7
  • 18
1
vote
1 answer

Add and run JQuery in Durandal JS framework using Knockout

Having difficulty running JQuery code in a ViewModel and executing the code in a View. The environment is run using Durandal JS framework. Unfortunately, anything from a simple alert('Hello?') to running 60-second timer, isn't working. The timer…
Eric Carr
  • 69
  • 7
1
vote
0 answers

How to handle back button after returning a promise from the activate callback in Durandal

We are developing a mobile application using Durandal 2.1 The documentation states that we can return a promise from the activate callback and it should cancel navigation on failure. We've been trying to use that feature, but it breaks the back…
KavenG
  • 161
  • 1
  • 9
1
vote
1 answer

Javascript console.log vs Durandal system.log

console.log vs Durandal system.log i am trying to understand if they are a like, I believe that they both gives the same output - logs in the console Am i missing something?
Eran Meir
  • 923
  • 3
  • 17
  • 32
1
vote
0 answers

Durandal JS Widgets Minification issue with Grunt

Wondered if anyone could shed a little more light on an issue I've experienced using Grunt to minify a DurandalJS project. I'm getting a 404 error when the page displaying the widget is shown. We added a new widget to a project that we were working…
Captain John
  • 1,859
  • 2
  • 16
  • 30
1
vote
1 answer

Durandal activate, detached events of child router never get triggered

When using the following Durandal child router plugin configuration, I'm not getting the detached and activate events described in the Durandal lifecycle, while other events work. It is a single page application, with the childRouter controlling…
Peter G.
  • 7,816
  • 20
  • 80
  • 154
1
vote
1 answer

What is the difference between returning a function and returning an object in a Durandal viewmodel?

I'm looking at implementing a wizard type system in my application and looking at the first wizard example on the dfiddle-2.0 project on GitHub. The step viewmodels are all functions though and I'm trying to understand why. Here is what the dfiddle…
Maleki
  • 4,038
  • 1
  • 15
  • 17
1
vote
1 answer

Can Knockout be made to observe ES6 symbols?

Using the new symbol type in ES6 you can set non-iterable properties on objects. However when using Knockout these symbols are not observed by default. It is possible to bind a symbol's value, but it is never updated as it isn't added to the…
1
vote
1 answer

AMD instance module that uses its own constructor - Durandal

In a Durandal app with MVC + Web API back-end I have the following C# class: public class ProductFilter { public string Name { get; set; } public List DependentFilters { get; set; } } I have a front-end instance model…
Sergi Papaseit
  • 15,999
  • 16
  • 67
  • 101
1
vote
0 answers

Session variables in business logic layer in Durandal

I am using a C#.NET Durandal Application. A have a business logic layer which is a C# class library. I want to store some values in the session variable in business logic. So whenever an ajax request comes to it, i dont have to refetch those…
user3117281
  • 61
  • 1
  • 7