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

Considerations for Weyland output

Using Durandal's optimization companion Weyland, we can combine all .js and .html files into main-built.js and skip RequireJS by using Almond. We do this as described in the docs: http://durandaljs.com/documentation/Weyland.html and…
clausndk
  • 3,129
  • 2
  • 18
  • 14
0
votes
2 answers

How to create and use an Excel Web App with DurandalJS?

I'm trying to add an Excel Web App to a DurandalJS website. Basically, I get a JSON object from the server, will transform it into a ...
tag so that Excel Web App can understand it. Then I'd like to be able to view that table with the…
GilNahmias
  • 99
  • 1
  • 8
0
votes
1 answer

loading remote views with DurandalJs

I'm learning DurandalJs and am trying to load a remote view from a different domain, however, requireJs keeps appending '.js' to the url for my html view resulting in a 404 error. My goal is to setup a framework where I can reuse html snippets for…
Tom Schreck
  • 5,177
  • 12
  • 68
  • 122
0
votes
1 answer

Durandal - Prevent reload on returning to list view

I have a classic master detail view on my durandal App, in the first view I have a list of entities and a filter box, this filter box makes the list refresh with the applied filters. Clicking an entry makes the browser navigate to the detail view.…
Luis
  • 5,979
  • 2
  • 31
  • 51
0
votes
0 answers

Durandal widget do not update viewmodel

I write spa web site with durandal. Every thing was ok until I use widget. Widget do not update my model. My widget viewmodel: define([], function () { var ctor = function () { }; ctor.prototype.activate = function (settings) { this.settings =…
Afshin Alizadeh
  • 218
  • 3
  • 10
0
votes
0 answers

Durandal Redundant Path and Module Definition

Why do I need to name the path, and define the module again, isn't that redundant? requirejs.config({ paths: { 'text': '../Scripts/text', 'durandal': '../Scripts/durandal', 'plugins': '../Scripts/durandal/plugins', …
Alwyn
  • 8,079
  • 12
  • 59
  • 107
0
votes
1 answer

Separate login view in a Durandal App

DOM for my Durandal app is structured as below: //shell.html
Here's a snippet…
nimgrg
  • 582
  • 1
  • 7
  • 17
0
votes
1 answer

is there anyway to force durandal to recreate view/controls on view revisits(invoke view attched event) while caching enabled

I am using a kendo UI grid on a view, which is part of durandal 2.0 app using knockout for mvvm. On a specific view, there is need to display a kendo grid having dynamic number of columns, so every time view is visited, grid columns may have…
0
votes
1 answer

mvc webApi, why application start again?

I work in durandal Project, which built on mvs web api. However, some-time it arrived to function Application_Start (in Global.asax) again, at running time. Why?! It must happen once, when first request arrives to server! For example, in…
0
votes
0 answers

How to get a knockoutjs computed observableArray from the items currently in a kendoui DataSource

I am trying to use kendoui DataSource together with my knockout viewmodel. It's very nice that I can just configure a kendoui DataSource and assign it to a kendoui grid's datasource. But the data that is currently being shown in a kendoui grid…
t316
  • 1,149
  • 1
  • 15
  • 28
0
votes
1 answer

durandal event not working properly

I am using durandal to pass messages between view models. So i used below code to send message return (datacontext.getData("Test, testData)) .then(app.trigger('FireEvent', `dataObsArray`)) .fail(queryFailed); Then i…
James
  • 1,827
  • 5
  • 39
  • 69
0
votes
3 answers

Stop Durandal from looking for the viewmodel

Hi I have a situation where I need to compose only a view and not a viewModel for this I have set this composition statement in my html: Content represent an observable from my viewmodel. The…
aleczandru
  • 5,319
  • 15
  • 62
  • 112
0
votes
1 answer

How to structure Views and ViewModels with user roles?

I'm working on an app that will require different views depending on the user role. Initially, I managed to separate my interaction with the API using a separate folder that contains the ajax request operations and models in order to avoid repeated…
Ted B.
  • 65
  • 8
0
votes
1 answer

DurandalJS compose binding not passing activationData to child view model

In DurandalJS I've created an Activator in my ViewModel which will be bound against a Compose Binding in the View. Trivial example: var ViewModel = function(){ this.childView = activator.create(); this.activate =…
Oliver Kane
  • 888
  • 1
  • 6
  • 23
0
votes
1 answer

Typescript and Durandal.JS and exports

What is defining the exports module in the following snippet? define(["require", "exports", 'durandal/app', 'durandal/http'], function(require, exports, __app__, __http__) { . . . } I checked out this example, opened the solution and couldn't…
Alwyn
  • 8,079
  • 12
  • 59
  • 107