function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Herish SurendranHerish Surendran 

how to pass parameter from visualforce page to lightning component attribute

Visualforce page
<apex:page controller="LightningComponentRedirectClass">
    <apex:form>
        <apex:commandButton value="Continue" action="{!Continuebutton}"/>
    </apex:form>
</apex:page>
VisualForce Page controller
public class LightningComponentRedirectClass {

    public PageReference Continuebutton(){
        String name = 'Herish';
        String url ='https://mydomain.lightning.force.com/lightning/n/Component_Name?First_Name' + name;
        PageReference LC = new PageReference(url);
        return LC;
    }
}

I am able to redirect from Visualforce page to lightning component (added to lightning application which is created in Lightning app builder). But I am not able to pass parameter from Visualforce page to Lightning component. Could anyone suggest me on how to achieve this.