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

How to send data from router to activate method in any js module

route: ['category/'+ reports ], moduleId: 'Admin/report/reportad', title: reports, nav: 1, // another js module self.actiate(context) { //want to get the router categories(**reports** is an array)details here } How to send data from…
Joel
  • 1
  • 2
0
votes
1 answer

cant able to pass a observable data while closing pop up

return{ // this code is in index.js addItem: function () { alert("working"); Newram.show().then(function (response) `***// Calling show functionin Newram.js***` { var c = response; } …
Joel
  • 1
  • 2
0
votes
0 answers

Jasmine unit test spec for my code. I am using Durandal and Knockout

I am very new to Jasmine unit test. I have pasted my code below. But not sure what i am doing wrong inside spec.Can you guys please guide me on the same. var subscription = self.selectedEmpList.subscribe(function (selectedEmpList) { if…
Rahul Pandey
  • 435
  • 1
  • 3
  • 13
0
votes
1 answer

HowTo: Get Durandal (or Backbone) router history and pass to window.someGlobalVar?

I am trying to expand this handy, but basic feedback widget: http://experiments.hertzen.com/jsfeedback/ That lives in the window namespace and POSTs to a blob server. I would like to be able to look into the router history of my Durandal app and…
0
votes
1 answer

Durandal App navigation issue

I have a Durandal App in an asp.net mvc project. It all works great but a few people mentioned the navigation didn't work. I then noticed that they were clicking on the links BEFORE the app was ready and the router was ready. Does anyone have any…
user1166905
  • 2,612
  • 7
  • 43
  • 75
0
votes
0 answers

Can I dynamically alter the module defined in a mapped route?

Assuming I have the following Durandal route map defined... vm.router.reset() .makeRelative({ moduleId: 'salesorder/createorder', fromParent: true, route: ':cartId' }) .map([ { route: 'orderheader',…
barrypicker
  • 9,740
  • 11
  • 65
  • 79
0
votes
2 answers

Durandal activating to specific route not working

I have the following:
And with the standard router configuration, I call: return router.activate('browse'); however, I get "hello" routed every time. I need to…
SB2055
  • 12,272
  • 32
  • 97
  • 202
0
votes
0 answers

Durandal open dialog without viewmodel

I want to open a custom Dialog in Durandal without a viewmodal. I want to set the path to the .html and want to do the js-stuff in the file, that opened the dialog. When a function has an Input by a click-event it works: editActivePeriod =…
fibi
  • 149
  • 1
  • 7
  • 13
0
votes
0 answers

Can durandal gulp file size be smaller and how to achieve that?

Recently i started using gulp for optimization, The generated file is just huge around 2.6 MB with gzip it gets chunked to 397 KB which is still big for my taste, The thing is the project is not near finished and it will only get bigger, Any advice…
Ibrahim Ahmed
  • 2,295
  • 4
  • 21
  • 35
0
votes
1 answer

Durandal Navigation without using "router"

I am developing a CMS using Durandal. My problem is with navigating through my menu items and other links. These pages don't "exist" hence am not sure how to map them for routing purposes. The starterkit on Durandal make reference to static pages.…
0
votes
1 answer

Durandal and ASP.Net - Interrupting the routing

I am using Durandal in an asp.net application which is all working well. What I would like to achieve is to put something into the routing of it so if required I can stop the current route and redirect. The reason for this is I want to permission…
user1166905
  • 2,612
  • 7
  • 43
  • 75
0
votes
1 answer

Durandal function is undefined

I have a problem with Durandal. I worked like the docs and getting the error, that the function is not defined, what do I wrong? backend.js: define(function(require){ return { getActivePeriods:function(){ …
fibi
  • 149
  • 1
  • 7
  • 13
0
votes
2 answers

Auto call function in durandaljs or knockoutjs

I have an app which displays the activity relative time using moment js plugin. The time is refreshed automatically comparing it with current time and displays (like facebook newsfeed). App was previously written in angularjs where i built this…
Code Prank
  • 4,209
  • 5
  • 31
  • 47
0
votes
1 answer

Breeze with durandal causing 'module not loaded undefined is not a function' error

Loading my payments module, i get the 'Failed to load routed module (payments). Undefined is not a function' error. I have tried everything, even rolling it back to some commits that happened a week ago, and keep getting the same error. After a…
Beartums
  • 1,340
  • 1
  • 10
  • 15
0
votes
1 answer

Durandal, observable non-singelton module without explicitly making them observables

I have my html file that looks like this:

hei

Bjørn
  • 1,138
  • 2
  • 16
  • 47