I'm using boilerplate and i have this routes where i have my viewmodels for every route.
controller.addRoutes({
"editor" : new ContentEditor(context),
"quiz_editor" : new QuizComponent(context)
});
I'm looking how can i send variables from the viewmodel of editor to the viewmodel of quiz editor.
I saw an answer with this example:
controller.addRoutes({
'user/{id}' : new UserComponent(context),
});
But this is not working for me, because i don't want the variable going in a get. And if i do that, i need to use window.location for go to the url. So i don't like it, and i don't need it.
I'm looking for a better way to do it. Hope you can help me and save my life.
Thank you.