You need to sign in to do that
Don't have an account?
Hari N 14
how to navigate from component to another component
Hi Everyone,
how to navigate from component to another component in lightning app?
Pleae provide me code structure, it will be great help for me.
Thanks in Advance
Thanks & Regards
how to navigate from component to another component in lightning app?
Pleae provide me code structure, it will be great help for me.
Thanks in Advance
Thanks & Regards
Refer the below example.
Here I have got two components named, Main.cmp and C1.cmp. You can navigate from Main.cmp to C1.cmp using the below snippets.
Main.cmp
MainController.js
C1.cmp
Kindly mark it as an answer if that solves your purpose.
All Answers
Please check the below code for more information
This is a useful link too
Best Regards
Naga Kiran
I am getting error, i.e., "undefined:setParams"
Can u please help out in this?
Refer the below example.
Here I have got two components named, Main.cmp and C1.cmp. You can navigate from Main.cmp to C1.cmp using the below snippets.
Main.cmp
MainController.js
C1.cmp
Kindly mark it as an answer if that solves your purpose.
Hi Akhil
Thanq so much for ur help.
I have one more requirement. Please help me in this.
After navigating to component-1 again I am navigting to main component.
But in this process, It is navigating like infinite loop. Its not navigating from one fresh page to another fresh page.
Please help out me how to achieve it.
Thanks in Advance.
You need to use events for the requirement that you are trying to achieve. Try writing an event for the same and let me know if you get stuck.
Please tell me which events I need to write and on which component I need to write.
Thanks & Regards
Hari
Calling: https://domain.salesforce.com/OBJECT_ID works, but takes me to a Classic page inside the mobile app. Not ideal.
I was hoping that or
Would work... but I get the error:
Any advice on how to accmplish both 1) navigating the native page and 2) using the sforce.one API in a lightning componet are much appreciated.