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

How to seperate model from viewmodel in knockout?

I have a model with an observableArray of items, which is just fine. E.g. var arr = ko.observableArray([{name: ko.observable('hello')}]); My problem is I want to have a separate array of settings for these items that does not belong in the model…
Cine
  • 4,255
  • 26
  • 46
0
votes
1 answer

Kendo-UI components when using Durandaljs

I'm spent days trying to work out how to use the kendo-ui component with Durandal but to no avail. I've managed to add a kendo-ui component declaratively on the page i.e. . This has no problems. However, I would like to do some animations based on…
0
votes
1 answer

Handle mutiple page templates with durandal (hiding modules for specific views)

I'm currently working on a Durandal 2 application. I'm new to this technology and I read a lot of documentation on the subject but I encounter a problem in my website conception. Most of my views have the same structure (header, menu, content,…
spaq
  • 3
  • 4
0
votes
0 answers

Durandal 2.0: how to not load anything/ module on start?

How can I not to load any module or page when I start the durandal app? I want to load the page content from server side programme (PHP & MySQL) into
..
only then the durandal app will follow. is it…
Run
  • 54,938
  • 169
  • 450
  • 748
0
votes
0 answers

I'm getting an occasional "flash" of a previous page when navigating in Durandal

When the app has been inactive for a while and I click on a navigation link, I see my "page isnavigating" spinner rotating for a few seconds and then just before the new page loads, the old page I navigated away from flashes on screen for a split…
TheMook
  • 1,531
  • 4
  • 20
  • 58
0
votes
1 answer

Turn off history for Durandal child router

I'm using the child routers in Durandal for tab control. However whenever you change tab, it creates a history event. Again and again. It has made my "Close" button pointless because I cannot router.navigateBack() anymore (would need to many…
Tim
  • 2,968
  • 5
  • 29
  • 55
0
votes
1 answer

isActive is not true for two routes that route to the same moduleId in Durandal 2.1

I have a pretty basic route that I barely modified from the Durandal Documentation. Basically, I'm setting up a default route, that should route to my home screen. define([ 'durandal/system', 'plugins/router', 'durandal/app' ], function…
crush
  • 16,713
  • 9
  • 59
  • 100
0
votes
1 answer

converting a .net durandal SPA from http to https

i have a .NET Single page application (Durandal). i want to convert it from HTTP to HTTPS in order to make it secure and add the certificates thing. how can i do that ?
user3117281
  • 61
  • 1
  • 7
0
votes
1 answer

Durandal: Include splat inside compose binding

I have this splat route configured inside shell.js router.map([ { route: 'projects*modal', title: 'Projects', moduleId: 'views/projects', nav: true }, ]).buildNavigationModel(); and this is how I try to compose the view with some splat…
0
votes
2 answers

How do I avoid expanding sections when using a composed view?

At various places in my single page app I use composition to compose one view into another. At the same time I have noticed some animation effects when certain pages load, almost as if sections were dynamically expanding as binding, etc. took place.…
Rhynier
  • 3
  • 3
0
votes
1 answer

Phonegap device AMD module

Here is my code which suppose to handle device and network events for my phonegap application define(['jquery', 'knockout'], function ($, ko) { var deviceHandler = { Online: null, Offline: null, OnNavigateBack: null }; function…
Rati_Ge
  • 1,262
  • 2
  • 15
  • 37
0
votes
1 answer

Tabs and child routers - Durandal

I am having a hard time understanding Durandal child routers. I would appreciate a little help from the community. I would like to create a child router underneath my main tab router. If a user clicks on tab B rather than tab A, I want my child…
0
votes
1 answer

Cannot make data to be bind-able inside of the widget

once i change value of input, my main model ($data.name) is not updated. Thanks in advance some view widget's view
eugeneK
  • 10,750
  • 19
  • 66
  • 101
0
votes
1 answer

Durandaljs pushState changed the behavior on 1 page

I'm using durandal pushState for SEO. All pages working correct but one. When I load this page - it loads(activates) 2 times instead of 1. When I make 'pushState:false' - this page works correct. What can be the problem of this page?
Andrey
  • 311
  • 2
  • 8
  • 29
0
votes
1 answer

Durandal observable array not updating

I copied the pagination example from the Durandal Samples into my code and I have noticed that the function gets called just once. Changing the values on the observable does not have any effect on the items observable array and does not make a fresh…
user1249065
  • 185
  • 2
  • 6