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