Router Activation Strategy in @aurelia/router

In Aurelia 1 it was possible to configure the router activationStrategy , as explained in the Reusing an Existing View Model help page.
There is some way to do the same in Aurelia 2 (so the same instance of component is used for example when navigating from foo/1 to foo/2)?
Thanks!

1 Like

I found a solution: adding the property reloadBehavior to the route:

{
  path: 'foo/:num',
...
  reloadBehavior: ReloadBehavior.reload,
}

I think this option should be explained in the documentation…

2 Likes