I have a visualforce page and aura component. I need to include this component in a visualforce page. How can I do this? Thanks for help!

Visualforce page: enter image description here

I took the lightning component here: https://sfdcfacts.com/lightning/lightning-pagination-with-page-number-navigation-using-client-side-controller/ enter image description here

1 Answer 1


You can Use Lightning Components in Visualforce Pages with the techniques outlined in the documentation.

First, you create a dependency app (Lightning App):

<aura:application access="GLOBAL" extends="ltng:outApp"> 
    <aura:dependency resource="c:LightningPaginationClientSide"/>

Then include this code in your Visualforce:

<div id="lightning" />

And then have this script block:

    $Lightning.use("c:paginationClientSideDependencyApp", function() {
          {  }, // Pass any properties you need here
          "lightning", // "id" of the container div to host the component
          function(cmp) {
            // do some stuff

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .