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
1
vote
1 answer

How to set a Splat route as Default route Durandal 2.0

My default route has child views, can I set a Splat route as Default route in Durandal 2.0 if yes how I tried something like below but it fails , basically I want to implement a childrouter in my default view how can I do…
akhil
  • 381
  • 2
  • 13
1
vote
1 answer

Durandal: Conditional Start Module When Activating the Router

My Durandal application's startup logic in shell.js requires sending the user to one of two possible views depending on some conditional logic. Basically, if certain options have not previously been selected I'll send them to a Setup page, otherwise…
Kevin Kuebler
  • 384
  • 1
  • 13
1
vote
2 answers

How to detect when composed html file is loaded in Durandal (after activator activated new item)

I'm using activator and I can detect when new view model was loaded and even activated but how to detect when its html counterpart was loaded and displayed? I just need to do something shortly after old html (composed/embedded into page) was…
Pol
  • 5,064
  • 4
  • 32
  • 51
1
vote
1 answer

Controlling the activation of the default transition in viewmodels

My question is quite simple and needs no special explanation. In Durandal, is it possible to control whether or not to use transition when switching from/to a viewmodel? The reason why I want to be able to deactivate the animation is as follows: I…
patryk
  • 651
  • 12
  • 30
1
vote
2 answers

Sub view Composition using Durandal

I have a View which is composed of another view (sub view) which has add/edit functionality , now I want to use routing so that on clicking Add a new View (Add) is displayed replacing the original view, I have tried using child router but it is not…
1
vote
1 answer

How to use requires to return constructor functions that have dependencies

How do you correctly use Require.js to load a module that returns a constructor function that has require dependencies? My problem seems to be a scope issue, I have seen some modules that are available within the returned constructor like…
Tyler
  • 1,019
  • 12
  • 27
1
vote
1 answer

Why is Bootstrap datetimepicker inserted multiple times into the DOM when using Durandal/Knockout?

I have an application built on Durandal JS 2.0 and using inspired parts from the CodeCamper SPA by John Papa. In one of the forms I want to have a date and time picker so I found http://www.malot.fr/bootstrap-datetimepicker which looks nice and…
Jan R
  • 41
  • 5
0
votes
0 answers

What does the "details" part of the Durandal splat route pattern do?

In their documentation for the router, Durandal shows the example of a "splat" route in a couple places, like this: router.map([ { route: 'knockout-samples*details', moduleId: 'ko/index', title: 'Knockout Samples', nav: true, hash:…
rory.ap
  • 34,009
  • 10
  • 83
  • 174
0
votes
0 answers

Different ParcelJs bundles for web and mobil users

I have an old Durandal site that are using requireJS for module loading. We are building 3 different main.js bundles. Web, Mobile and one for the site embedded in a WPF desktop app. The same goes for the css/scss. My motivation for moving the build…
Martin Andersen
  • 2,460
  • 2
  • 38
  • 66
0
votes
1 answer

Attach Durandal child routes to main rute object

I would like to ask if it's possible to attache child routes to they're parent route? If all routes are defined on the main route then I can use the route object to build my 2-level menus. I also just want to set-up all routes in one file.
Martin Andersen
  • 2,460
  • 2
  • 38
  • 66
0
votes
2 answers

Durandal - Run datePicker after the DOM activated

I added a data picker inside a textbox (that should hold the selected date), it should activate when i press the textbox. the HTML code: when i press…
Michael meshaev
  • 31
  • 1
  • 11
0
votes
1 answer

Durandal: Create function in one child and Consume from another child

I have a Knockout application developed using Durandal.JS. Here is the structure of my project: - Parent - Index.js - Index.html - Child1 - Index.js - Index.html - Child2 - Index.js - Index.html I have a function…
ConfusedDeveloper
  • 6,389
  • 4
  • 21
  • 36
0
votes
0 answers

SPA (Single Page Application) Render client or server

I have a simple yet not so easy question. (So, I suppose) I have a current DurandalJS application in production. I am generating my views using C# Razor syntax. So, I am still using my controller to pass the HTML to the client. Rather complicated to…
JCircio
  • 525
  • 2
  • 7
  • 18
0
votes
0 answers

DurandalJs Gulp Minification not working

I am trying to move on from WelandJS. (Yes, I know, it was discontinued years ago) but it was working. Anyway, for the life of me I cannot get GULP and DurandalJS to play nicely. Heres my code var gulp = require('gulp'); var durandal =…
JCircio
  • 525
  • 2
  • 7
  • 18
0
votes
1 answer

Can durandaljs has more than one shell.js?

I have 3 SPAs within one bigger project written by DuraldalJS (called A). Can A has 3 shell.js to load for each SPA? Thanks.
Tung Pham
  • 1
  • 1