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 2 upgrade redirect issue

Hello and thanks for taking a look at my issue. I have been migrating my SPA application to use the Durandal 2.0 library, following the sage advice from my oft savior, John Papa. And now that I have completed the upgrade process, I find a strange…
0
votes
1 answer

DurandalJS how to redirect without rendering the page?

Is it possible to navigate to some page by hash and then do some logic and redirect back without rendering new page/module but REFRESH the one, where I was navigating from? Actually what I want is to do some logic and refresh the same page without…
Tomasz Sikora
  • 1,649
  • 3
  • 19
  • 30
0
votes
1 answer

durandal, pass parameters to widget during navigation

i have several singleton views in my SPA, each of these view contain the same widget. When the view is activated i take some parameters from the activate callback and pass it to the widget and it works fine. But if i navigate the second time into…
0
votes
1 answer

how can i redirect mapUnknownRoutes to a parent

This is what i have i a child routing( from work --> index.js) .map(acceptedTypes).buildNavigationModel().mapUnknownRoutes('code404', 'code404'); how can i redirect it to the parent code404 ? my folder looks like this. App | viewmodels | …
Gildas.Tambo
  • 22,173
  • 7
  • 50
  • 78
0
votes
1 answer

Loading child routers from database durandal

i trying to create child routes in durandal 2 from my database starterkit without success. Although I succeeded in rendering it with static contents as shown below: define(['plugins/router', 'knockout'], function (router, ko) { var childRouter =…
Jay
  • 321
  • 3
  • 7
  • 19
0
votes
0 answers

how to load previous view on back button in durandal

I am trying to load a view when in my project. I want to load a previous page which i had visited and now go back to previous page after clicking the back button of the browser. DO i have to write a method to load it using services of durandal.?
user3004443
  • 133
  • 1
  • 1
  • 16
0
votes
1 answer

Separate login view in a Durandal App

DOM for my Durandal app is structured as below: //shell.html
Here's a snippet…
nimgrg
  • 582
  • 1
  • 7
  • 17
0
votes
1 answer

Incorrect binding handling with Durandal composing

Durandal binds view model to view before it has attached, and when you try to check element sizes using jquery it always returns 0. That's because jQuery can't get correct sizes of element which is invisible or is in invisible container. My binding…
iofjuupasli
  • 3,818
  • 1
  • 16
  • 17
0
votes
1 answer

Does DurandalJs support location.href="#page1"

I want to redirect to the previous page on click of a button , i am able to do this using location.href="#PrevPage" will it affect any durandalJs functionality
Manju DS
  • 37
  • 3
0
votes
1 answer

Splash screen disapears before call to server is completed

Hi I would like to be able to delay the splash of my app for a bit here is what I mean. This is my shell view:
This is my shell…
Nistor Alexandru
  • 5,309
  • 9
  • 46
  • 71
0
votes
1 answer

Load as View or ViewModel?

Using Durandal 2.0.1, Knockout 3.0.0, RequireJS 2.1.10. The following is background info, just setting the stage: I have a fundamental question about whether to load a sub item as a view or a view model. I am trying to follow the design printed on…
0
votes
1 answer

How to handle Durandal MVC routing?

I have introduced mvc area concept with the durandal My hierarchy would be Area.Web Areas Blog Controller SocialController Social View Task Controller …
0
votes
1 answer

durandal.router isNavigating property weird error

I use durandal router to show a spinning icon while the page is loading. This is the code that makes it appear or hide itself:
fduayer
  • 770
  • 1
  • 7
  • 23
0
votes
2 answers

Durandal third-level subrouting

I'm trying to make child router of a child router in Durandal.js, but getting random dumb errors (for example 404 etc.). Is it Durandal's issue (I mean if it has not third-level subrouting support) or it's maybe my code problem? Thanks Anyways, I'm…
nikoloza
  • 968
  • 2
  • 12
  • 30
0
votes
2 answers

Dynamic composition using knockout and durandal doesn't work

I have a strange problem while using Durandal/Knockout. In some cases the binding doesn't work properly. I've simplified my situation which came in this question. I'm setting composition info somewhere in my code like: compositionInfo({ model:…
mehrandvd
  • 8,806
  • 12
  • 64
  • 111