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
20
votes
1 answer

Configure child router to compose modules in parent router viewport html binding

Objective: I want the segregation and encapsulation benefits of utilizing child routers to organize routes by significant feature areas of the app. However, I want to have those routes handled and composed by the parent router viewport binding. i.e…
Matthew Cox
  • 13,566
  • 9
  • 54
  • 72
8
votes
1 answer

Durandal 2.0 - Child routers intended for nested menus?

I've building an app, and wanting to show a 2-tier menu, with both tiers always available. Durandal 2.0 introduced their new router, which supports 'child routers', which allow for easier deeplinking. My question - Can I have my 'child' navigation…
Overflew
  • 7,872
  • 10
  • 45
  • 65
5
votes
1 answer

Durandal - View Not Found. Searched for "/" on intermittent

I wonder if anyone has had a similar problem with Durandal.js. I am getting an intermittent "View Not Found. Searched for" error, which is hard to replicate as only happens very occasionally. It appears to spawn from the file viewEngine.js when the…
rjmacarthy
  • 2,164
  • 1
  • 13
  • 22
3
votes
1 answer

Durandal null/empty route

I have a master/detail situation. I'd like to employ a child router so that I can (a) make full use of the history module and (b) trigger the entrance transition on only the child. Here's my setup: Shell.js // configure the shell…
Matthew James Davis
  • 12,134
  • 7
  • 61
  • 90
3
votes
1 answer

Handling load timeouts of a view in a Durandal app

I've got a Durandal app that will periodically timeout when attempting to load a view. Here's an example timeout error: Error: Load timeout for modules: text!views/primaryapplicants.html http://requirejs.org/docs/errors.html#timeout If you lookup…
Josh
  • 7,232
  • 8
  • 48
  • 75
3
votes
2 answers

durandaljs child router deactivate event

How to fire deactivate event when parent route changing. For instance in 'HTML Samples', when Master-Detail page is active, change view to another one. How to force dialog "Do you want to leave...." here? Thanks Vladimir. UPD: Code from HTML…
2
votes
0 answers

Durandal - how to route parametrized module at levels with a different no. of parameters?

While the direct mapping of route parameters to activate() parameters is convenient, it poses a problem for me for the reuse of parametrized modules. Take a route like e.g. { route: '/user/:id/request(/:requestId)', moduleId: 'requestDetail', title:…
DaHauns
  • 21
  • 1
2
votes
1 answer

durandal 2.0 navigateBack() causes full page refresh

I am trying to get the router.navigateBack function working correctly using Durandal 2.0.1. I have a viewmodel that can create an entity that we'll call lead. After creating a new lead I want to replace the uri so that it has the edit lead route…
John Gurski
  • 91
  • 2
  • 6
2
votes
1 answer

durandaljs router:navigation:composition-complete firing too soon

My question is: what's the best way to know when a child module has fully loaded and finished composition, so that i can then test the html contents of that module? I'm trying to write some integration tests that run after a route has fully…
Tyler Jones
  • 1,283
  • 4
  • 18
  • 38
2
votes
3 answers

durandaljs - navigate to view on button click

maybe i missed the point of navigating in durandal, but if i want to trigger a view on a button click, how is this done? i'm databinding a button to a click function in the viewmodel. however, when the viewmodel gets loaded, it immediately triggers…
bigerock
  • 713
  • 1
  • 9
  • 29
2
votes
1 answer

Durandal rebind when navigating to same module and view with different data

I have a pair viewmodel/view in my application that it is used for displaying different data. The data that is displayed is generated by some user input and a separate route for each set of data is registered on the router. The problem is that…
Razvan
  • 3,017
  • 1
  • 26
  • 35
2
votes
1 answer

Get Title of the Current page from Shell.html using DurandalJS/Router

I try to find title for the current page (navigation)... the only way that work for me was: that is a little ugly.

A better way will…
Jaider
  • 14,268
  • 5
  • 75
  • 82
2
votes
2 answers

Durandal 2.0 "routes"

I'm a Beginner trying to learn SPA / Durandal, Knockout etc... Need some help with my routes for a Admin drop down button. Here are my routes in the shell.js so far: var routes = [ { route: '', moduleId: 'home', title: 'Home', nav: 1 }, …
2
votes
1 answer

Asterisk (*) in Durandal route

What is the purpose of the asterisk in Durandal routes? Here is an example from the Docs: route:'knockout-samples*details' EDIT: Using Durandal 2.0
2
votes
1 answer

Durandal: how do you dynamically add/remove an item from the navigation model?

Here are the steps I followed: 1) new asp.net mvc 4 project 2) chose the durandal spa template 3) in shell.js, added this route... { route: 'orders/:id', moduleId: 'viewmodels/order', nav: false } 4) added a viewmodel- order.js: define([],…
Jeremy Danyow
  • 26,470
  • 12
  • 87
  • 133
1
2 3 4 5 6 7