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

Durandal Event in widgets

So I have yet another DurandalJS question. So I have a few widgets that are pretty much self contained. They render or hide themselves depending on whether the current user is logged in or not e.g. I have a widget that displays the current users…
Obi
  • 3,091
  • 4
  • 34
  • 56
0
votes
3 answers

How call a function when view is attached in Durandal?

I'm just started to develeop a web app with Durandal. I don't understand how call a function from a viewmodel and why if I find an element of my document it seems is not attached yet. Example: viewmodel.js define( ['libone', 'libtwo'], function…
user2312187
  • 60
  • 1
  • 13
0
votes
1 answer

Implement Sidr in Durandal

I am trying to get the Sidr plugin to work in Durandal. Here's what I have Main.js requirejs.config({ paths: { 'text': '../lib/require/text', 'async': '../lib/require/async', 'durandal': '../lib/durandal/js', 'plugins':…
Obi
  • 3,091
  • 4
  • 34
  • 56
0
votes
1 answer

Durandal 2.0.1, Tryactivate getting called again and again

I am using Durandal 2.0.1 for my application. I am using below html code to compose view and viewmodel.
The…
0
votes
1 answer

Knockout-sortable with Durandal compose

I'm attempting to create a view that contains a dynamic set of widgets (not actual durandal widgets) within it. Each widget is just a standard module that will have its own behavior and rendering, and the user should be able to drag and reorganize…
Pablo Romeo
  • 11,298
  • 2
  • 30
  • 58
0
votes
1 answer

Child Routers durandal 2 HTML StarterKit

i trying to create child routes in durandal 2 starterkit as shown in http://durandaljs.com/documentation/Using-The-Router/ without success. i want to habe something like http://mywebsite.com/#blog/post1/ so in my app i have in viewmodel a shell…
Gildas.Tambo
  • 22,173
  • 7
  • 50
  • 78
0
votes
0 answers

durandal 2.0 custom dialog master-detail

After upgrading to durandal 2.0, I found I needed to convert my master list page to use the showDialog function instead of showModal. Previously my master model looked like this: define(['durandal/amd/require', 'durandal/app',…
JoeWarwick
  • 105
  • 2
  • 8
0
votes
1 answer

durandal : multiple views for one viewmodel

Im working with durandal 2 and breezejs. I have some tables in my DB lets call them table1 and table2. In the project i created a CRUD for table1 : viewmodels/table1crud.js + views/table1crud.html viewmodel and view that will connect to the DB…
dafriskymonkey
  • 2,189
  • 6
  • 25
  • 48
0
votes
1 answer

How to define a standard child route in the durandal sample application

When I enter in the url bar: http://localhost:28905/#knockout-samples/ there is on the left side the hello world route. When I click on it the url bar changes to this: http://localhost:28905/#knockout-samples/helloWorld 1.) How can I load the…
Elisabeth
  • 20,496
  • 52
  • 200
  • 321
-1
votes
1 answer

Knockout fallback view

Durandal, RequireJS, KnockoutJS I have a generic and a client specific view in my project. │ faq.html │ welcome.html │ shell.html │ ├───Client1 │ faq.html │ ├───Client2 │ faq.html │ welcome.html I want to show the client specific…
-1
votes
1 answer

How to download source code for Durandal sample project(Hello World)

How can i get a source code for http://durandaljs.com/samples.html Thanks in Advance!
Pankajya
  • 109
  • 1
  • 5
-1
votes
1 answer

Load Spread based on default item selected in the combobox and reload on changing selected item (knockout)

I want to load my page based on default item selected in the combobox and reload on changing selected item (knockout). Currently what I am doing is loading the form on click of a button. Here is my code. Please suggest me as I am very new to…
Rahul Pandey
  • 435
  • 1
  • 3
  • 13
-1
votes
4 answers

3rd Party script in content not loading in Durandal

My question is almost similar in nature to one posted here. I am loading HTML content from my database that contains a third party script. As i have found out Durandal does not load that script or rather the view will not compose that element. My…
mboko
  • 359
  • 6
  • 16
-1
votes
1 answer

Durandal technique to refresh an existing page [view/viewmodel]

I've a dashboard page which shows data relevant to a particular user which is shown in the drop-down at the right hand top corner. When i select a different user the dashboard should be reloaded/refresh with data relevant to that user. Router does…
Rohitdev
  • 866
  • 6
  • 15
1 2 3
18
19