Activity Forums Salesforce® Discussions How can we navigate from one component to another component in Salesforce?

  • How can we navigate from one component to another component in Salesforce?

  • Prachi

    Member
    August 17, 2018 at 1:22 pm

    How can we navigate from one component to another component in Salesforce?

  • chanchal kumar

    Member
    August 17, 2018 at 1:26 pm

    Hello Prachi,

    Yes. With the help of lightning:navigate tag and then use the page reference in JS Controller.

  • Parul

    Member
    September 28, 2018 at 5:44 pm

    navigateToMyComponent : function(component, event, helper) {
    var evt = $A.get("e.force:navigateToComponent");
    evt.setParams({
    componentDef : "c:myComponent",
    componentAttributes: {
    contactName : component.get("v.contact.Name")
    }
    });
    evt.fire();
    }

Viewing 1 - 3 of 3 posts

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos