function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Daniel FullerDaniel Fuller 

How can you navigate between Lightning Components on a desktop Lightning App?

Good afternoon everyone,

I am currently stuck on an issue while developing a desktop Lightning App. Is there currently any native Lightning events or any way to navigate between Lightning components within a desktop Lightning app? All I have been able to do so far is just hide and show the components with jQuery/Javascript. I have only been able to find navigation-related events that are only supported for Salesforce1 mobile but not desktop Lightning apps.

I look forward to any information you guys can provide. Thanks!
bob_buzzardbob_buzzard
The short answer is that you can't do this at the moment - I believe it is on the roadmap.

The way I'm handling this is through dynamic component creation. My top level component contains a "content" div with the component that I'm currently using. As I need to move to another component, I dynamically create it and replace the "content" with my new component. It works well, but you do have to jump through the odd hoop around attributes and event handling.