Activity Forums Salesforce® Discussions How to navigate from one component to another in the lightning component in Salesforce?

  • Somendra

    Member
    August 30, 2019 at 7:03 AM

    Hi Saddam, use e.force:navigateToComponent​ for Navigate to another component

    navigateToComponent2 : function(component, event, helper) {
        var evt = $A.get("e.force:navigateToComponent");
        evt.setParams({
            componentDef : "c:Component2",
            //You can pass attribute value to Component2
            //componentAttributes :{ }
        });
        evt.fire();
    }
    

     

     

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos

Salesforce Admin Certification 2020 Questions Explained with References - Part II

Video in

How to prepare and pass Salesforce Admin Certification with Practice Exam Questions 2020 practice questions and answers for the Salesforce Administration Salesforce Certified Admin Exam Questions Salesforce Administrator Certification Exam…