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

Durandal navigate to a view with model as parameter

I want to navigate to a view html file (from another view's js file) but pass in the model to be used by that view. How can I do this please. I can generally do this when I am opening the new view in a dialog. In this case, I create the model object…
jpo
  • 3,959
  • 20
  • 59
  • 102
0
votes
1 answer

Durandal router cacheViews not working (v2.1.0)

I am trying to figure out how to use the Durandal v2.1.0 router to navigate between views using the router.navigate(); function. I have been able to navigate back and forth between two views but each time the view is recreated. I want to be able to…
husterk
  • 184
  • 1
  • 10
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

Durandal Child router re-activate all level up to root

We are developping an application with durandaljs and we seems to have issues with child routers or at least, something we don't understand or can't figure out. Let's start with an exemple. Route => /part1/:id/part2/:id2/part3 The problem, the…
Marc-Andre R.
  • 658
  • 7
  • 23
0
votes
1 answer

durandal 3rd level child router

Once I declare 3rd level router, I am facing problem in navigation between modules defined in 2nd level router. The issue is: when I navigate in between different modules at 2nd level router, activate is fired but attached is not fired for the…
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
0 answers

I'm getting an occasional "flash" of a previous page when navigating in Durandal

When the app has been inactive for a while and I click on a navigation link, I see my "page isnavigating" spinner rotating for a few seconds and then just before the new page loads, the old page I navigated away from flashes on screen for a split…
TheMook
  • 1,531
  • 4
  • 20
  • 58
0
votes
1 answer

isActive is not true for two routes that route to the same moduleId in Durandal 2.1

I have a pretty basic route that I barely modified from the Durandal Documentation. Basically, I'm setting up a default route, that should route to my home screen. define([ 'durandal/system', 'plugins/router', 'durandal/app' ], function…
crush
  • 16,713
  • 9
  • 59
  • 100
0
votes
1 answer

Durandal: Include splat inside compose binding

I have this splat route configured inside shell.js router.map([ { route: 'projects*modal', title: 'Projects', moduleId: 'views/projects', nav: true }, ]).buildNavigationModel(); and this is how I try to compose the view with some splat…
0
votes
1 answer

Tabs and child routers - Durandal

I am having a hard time understanding Durandal child routers. I would appreciate a little help from the community. I would like to create a child router underneath my main tab router. If a user clicks on tab B rather than tab A, I want my child…
0
votes
1 answer

Durandaljs pushState changed the behavior on 1 page

I'm using durandal pushState for SEO. All pages working correct but one. When I load this page - it loads(activates) 2 times instead of 1. When I make 'pushState:false' - this page works correct. What can be the problem of this page?
Andrey
  • 311
  • 2
  • 8
  • 29
0
votes
1 answer

Inject a page to child page

I'm creating a SPA website. Based on the durandal template in visual studio, we have main.js file which defines: app.setRoot('viewmodels/shell', 'entrance'); and we have 2 child page are welcome.js and flickr.js have been injected to shell…
0
votes
0 answers

How to make durandal route relative

I am building a dynamic route base on user click, the navigationmodal is rebuilt after the user click a button, which determines the route to navigate the user to. How do I make durandal route relative when using the navigate in a view model. When I…
0
votes
1 answer

Is it possible to detect if the user can go back?

Basically, I need to replicate the browser back button on my app (I do not want it, but I need to do it :/) On durandal, I can navigate back by calling router.navigateBack();. But there is not always a page back (the browser back button get disabled…
Leo
  • 7,379
  • 6
  • 28
  • 44
0
votes
1 answer

DurandalJS - Enforcing Full Activation Cycle on Page Root (aka: fire "deactivate" on app.setRoot())

[Edit] There's also Google Groups thread over here. I'll try to keep both updated as I learn more. According to the Durandal Documentation the page Root View Model only implements limited Activator functionality. Specifically, it states…