0

I would like to load a view manually without navigating to it. so in my code the following:

 router.navigate(url);

loads the view and also activates it and navigate to it. I wan all of these except I don't wanna navigate to it. So I want something like this:

 router.load(url);

Can anybody help me?

DalekSupreme
  • 1,493
  • 3
  • 19
  • 32
  • You can use the `compose` binding. Please see the [documentation](http://durandaljs.com/documentation/Using-Composition.html) for durandal composition. – Anish Patel Oct 22 '15 at 12:12
  • 1
    I guess you can return false from the canActivate() hook, so that that view is not activated. – gkb Oct 28 '15 at 11:11

0 Answers0