Questions tagged [durandal-navigation]

using the router plugin, and other navigation-related questions about DurandalJS

Related links

DurandalJS router plugin documentation: http://durandaljs.com/documentation/api.html#module/router

94 questions
1
vote
1 answer

How to set a Splat route as Default route Durandal 2.0

My default route has child views, can I set a Splat route as Default route in Durandal 2.0 if yes how I tried something like below but it fails , basically I want to implement a childrouter in my default view how can I do…
akhil
  • 381
  • 2
  • 13
1
vote
1 answer

Controlling the activation of the default transition in viewmodels

My question is quite simple and needs no special explanation. In Durandal, is it possible to control whether or not to use transition when switching from/to a viewmodel? The reason why I want to be able to deactivate the animation is as follows: I…
patryk
  • 651
  • 12
  • 30
1
vote
2 answers

Sub view Composition using Durandal

I have a View which is composed of another view (sub view) which has add/edit functionality , now I want to use routing so that on clicking Add a new View (Add) is displayed replacing the original view, I have tried using child router but it is not…
1
vote
2 answers

Navigate using router and pass an object as a query string

I have two modules that I want to connect by navigating from one to the other. Since there are going several parameters to be passed, I want to use query string. Is there a way to use the built-in router to navigate to a module and have my object…
patryk
  • 651
  • 12
  • 30
0
votes
0 answers

What does the "details" part of the Durandal splat route pattern do?

In their documentation for the router, Durandal shows the example of a "splat" route in a couple places, like this: router.map([ { route: 'knockout-samples*details', moduleId: 'ko/index', title: 'Knockout Samples', nav: true, hash:…
rory.ap
  • 34,009
  • 10
  • 83
  • 174
0
votes
1 answer

Attach Durandal child routes to main rute object

I would like to ask if it's possible to attache child routes to they're parent route? If all routes are defined on the main route then I can use the route object to build my 2-level menus. I also just want to set-up all routes in one file.
Martin Andersen
  • 2,460
  • 2
  • 38
  • 66
0
votes
1 answer

Can durandaljs has more than one shell.js?

I have 3 SPAs within one bigger project written by DuraldalJS (called A). Can A has 3 shell.js to load for each SPA? Thanks.
Tung Pham
  • 1
  • 1
0
votes
1 answer

Multiple SPA Using MVC Areas - Navigate Outside SPA Router Routes

How can I escape client side routing when wanting to navigate outside the set list of routes setup in the router? I created a project using Durandal.js and have created SPA's inside different Areas. The problem I ran into is that when I want to…
0
votes
1 answer

Durandal Child router not finding views

Just before I go into the issue here is an overview of my project structure -- Common --services --views --viewmodels -- Product1 --services --views -- mywork -- overview.html -- sections …
Scott Alexander
  • 455
  • 2
  • 17
0
votes
1 answer

Durandal: Defining the same viewmodel (control) as two different variables

So I've created a scroller control that I want to use in two different places within the same viewmodel for example:- define(['common/viewmodels/controls/scroller-nav', 'common/viewmodels/controls/scroller-nav'], function(mainScrollNav,…
Scott Alexander
  • 455
  • 2
  • 17
0
votes
1 answer

Durandaljs router reloads the page regardless of "trigger: false" parameter In Firefox

I need to modify the url hash, but not reload the page (not trigger module activation), so I do: router.navigate(route, {trigger: false}); or router.navigate(route, false); Both work in all browsers except Firefox. My Firefox version is…
0
votes
1 answer

Override method of an existing instance

I'm trying to extend an existing Durandal router plugin instance already created with the help of RequireJS. The method map() should be overriden to add extra mapping parameters. How should I access the original method from the modified…
Peter G.
  • 7,816
  • 20
  • 80
  • 154
0
votes
1 answer

Durandal child router updating bindings only once

The router that I have created successfully builds a navigation model, but it's missing to update some bindings that need to be updated each time a page is loaded within that childRouter (app.pageTitle, app.pageDescription). Is there some way how to…
Peter G.
  • 7,816
  • 20
  • 80
  • 154
0
votes
1 answer

How to access the previous route from Durandal router

Is there a way to access the previous route/instruction from the Durandal.js router? I know I can do router.navigateBack() to actually navigate back, but I want to know the route that I will navigating back to before I trigger the navigation.
jbgarr
  • 1,378
  • 1
  • 12
  • 23
0
votes
1 answer

How do you pass in variables into the shell or the root view model

I'm new to durandal. I just wondered if there was a way to pass in variables to the root view model aka the shell, either via querystring or any other way? so main.js looks something like the below define(['durandal/app'], function (app) { …
Mayoweezy
  • 537
  • 1
  • 8
  • 21