You need to sign in to do that
Don't have an account?
factory factory
Lightning components switching between components
Hi guys,
I'm playing with lightning components and I'm having a problem with switching between components.
I was able to accomplish the switch from component A to B by using $A.get("e.force:navigateToComponent") which worked like a charm. But I cannot find another way except window.history.back() to get back from B to A. This kind of works but shows some strange behaviour with the back button in SF1 and if I go back from A to B again I have to press the back button two times to get back from B to A again ... so kind of strange :)
Does anyone know how to do this the right way?
Thank you!
I'm playing with lightning components and I'm having a problem with switching between components.
I was able to accomplish the switch from component A to B by using $A.get("e.force:navigateToComponent") which worked like a charm. But I cannot find another way except window.history.back() to get back from B to A. This kind of works but shows some strange behaviour with the back button in SF1 and if I go back from A to B again I have to press the back button two times to get back from B to A again ... so kind of strange :)
Does anyone know how to do this the right way?
Thank you!
$A.get("e.force:navigateBack").fire();
just console.log($A); and the available functions can be seen
Thanks,
Skip
Thank you!