6

I found the usage of $A.get("e.force:navigateToComponent") described in this answer here How to set up views and navigation in Lightning?

But reviewing the documentation, there is only

  • force:navigateToList
  • force:navigateToObjectHome
  • force:navigateToRelatedList
  • force:navigateToSObjectHome
  • force:navigateToURL

Is this force:navigateToComponent aviailable, supported and documented now? (in Winter'16)

Uwe Heim
  • 28,350
  • 18
  • 115
  • 283
  • It's not documented till now. But hopefully we'll be able to use properly documented equivalent of $A.get("e.force:navigateToComponent") by Winter 17. http://salesforce.stackexchange.com/a/133189/29317 – SE_User Aug 10 '16 at 05:37

2 Answers2

3

In this answer https://salesforce.stackexchange.com/a/89570/7515 @Skip Sauls mentioned that we can not rely on functionality available in JS API if it's not described in Docs.
And I believe the latest documentation is deployed to every org (https://instance.salesforce.com/auradocs#reference)

Hope this event will be supported in future releases.

steals
  • 1,243
  • 14
  • 23
  • Thanks @steals - So as a conclusion force:navigateToComponent is not in the docs (as of today) and therefore not usable, right? And the answer http://salesforce.stackexchange.com/questions/56256/how-to-set-up-views-and-navigation-in-lightning/67130#67130 is simply wrong yet? – Uwe Heim Oct 29 '15 at 08:35
  • @UweHeim In case, if you haven't seen this already http://salesforce.stackexchange.com/a/133189/29317 – SE_User Aug 10 '16 at 05:32
2

force:navigateToComponent is now available in Beta in Winter '17 and is documented here: https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/ref_force_navigateToComponent.htm

Fabien Taillon
  • 8,605
  • 2
  • 38
  • 58