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
0 answers

Durandal child router's activeItem is not changing unless I bind router to a view

I have a child router setup for one of my viewModels using durandal. However, I can't read router's activeModule when the router is navigating to the second child route unless I also compose a view corresponding to the child route. Can anyone…
1
vote
1 answer

Durandal - child router can reuse same model

I am trying to configure the router to allow one model for multiple views. It is a 'profile' module so I have a top level router like so: .map([{ route: ['profile*details', ''], moduleId: 'myprofile', title: 'Your Profile', hash:'#profile', nav:…
JoeWarwick
  • 105
  • 2
  • 8
1
vote
0 answers

How to go about debugging Durandal

I had a trivial Durandal app working, paused to prototype a capability in an html page related only by the fact that it resides in the same folder, and then returned to the Durandal app only to find that while the shell is constructing the menu,…
Peter Wone
  • 17,965
  • 12
  • 82
  • 134
1
vote
1 answer

Durandal child router setup with relative moduleId

I am trying to configure Durandal child routing. I have a public section for witch the parent router is responsible: //main router return router.map(config.publicRoutes) .buildNavigationModel() .mapUnknownRoutes('account/login',…
Razvan
  • 3,017
  • 1
  • 26
  • 35
1
vote
1 answer

Is it possible to use appropriate file names for widgets in Durandal

Using Durandal widgets, you have to create a folder for each widget, and then 2 files in each folder. For example a mywidget folder containing view.html, model.js files. This naming style makes it difficult to find files in the solution. Is there…
mehrandvd
  • 8,806
  • 12
  • 64
  • 111
1
vote
2 answers

Intercept route navigation and ask user "are you sure you wish to leave this page?"

I have a Durandal app that allows the user to update various bits of profile information. For some bits of data, the user must click "save" to indicate they want to save their changes. In the event that the user attempts to navigate away from the…
Josh
  • 7,232
  • 8
  • 48
  • 75
1
vote
1 answer

send additional parameters to breeze-saving-server functions

I work in durandal project. I use breeze to retrieve and save my data. I want to send to the server, on saving, additional parameters other than the entity, like- who is the user that save the entity. but, function saveChanges of breeze accept only…
user5260143
  • 1,048
  • 2
  • 12
  • 36
1
vote
1 answer

Durandal view no more displayed if user click quickly on menus

I use Durandal 2.0 & Breeze in my SPA. I have a sidebar menu for my drivers (Chauffeurs) where user can click on submenus (Récents, Disponibles, Indisponibles) for calling my view with different parameters. This will fill a koGrid with data. The…
Bronzato
  • 9,438
  • 29
  • 120
  • 212
1
vote
1 answer

DurandalJS and composing Child Views with Parameters

I'm having some difficulty transitioning from Knockout's template binding to the Durandal compose binding. In my old project, I have a list of tabs which can be swapped into center stage by placing them into the "selectedTabSection" observable. The…
Oliver Kane
  • 888
  • 1
  • 6
  • 23
1
vote
1 answer

How to load custom client controls/widgets dynamically in the view based on json data?

Requirement: I will be getting json data using REST service from a server. That json data will tell me the what type of controls (ControlID) to present to the user and what is that data that needs to be inserted in those controls. So, the basic need…
KKS
  • 3,600
  • 1
  • 27
  • 54
1
vote
3 answers

durandal localization (server view)

I'm developing an SPA with durandal. I'm relying on ASP.NET Web API and ASP.NET MVC. For the localization needs, I've already set up the i18n module as desribed in the durandal v2 doc, and this works fine even if I always had in mind to manage most…
chrisdot
  • 659
  • 6
  • 19
1
vote
1 answer

New instance of durandal viewmodel still reflecting previous values

I have run into a strange problem while trying out a slightly complex composition scenario using durandal. I want to dynamically compose the content of each cell of a table. As an example, I have the following files: welcome.html => contains the…
1
vote
1 answer

Durandal 2.0 shell.js not running in every view

I upgraded my application to Durandal 2.0. My app is modeled after HotTowel, with a main.js and a shell.js. I thought that shell.js ran on every view, however it is not. My shell.js contains my security code, which of course has to be ran on…
Chris
  • 795
  • 2
  • 12
  • 27
1
vote
1 answer

Durandal js router setup

I've managed to get a simple router working and even created a child router for my submenu but there are one or two things I'm not sure of why they're there. The docs give you a basic leg up and then you're on your own. So I'm reading the docs from…
Ben Thurley
  • 6,943
  • 4
  • 31
  • 54
1
vote
1 answer

Select2 Js dropdown is not working in durandal Js

I am using durandal Js 2.0 & knockout Js.I tried to integrate Select2 Js dropdown in Durandal(http://jsfiddle.net/anasnakawa/6XvqX/381/) But its not working. What is custom Binding handlers & how to use it in durandal.…
King
  • 53
  • 1
  • 9