SalesForce Interview questions


Total available count: 39
Subject - SalesForce
Subsubject - SalesForce

How Use Lightning Component in Visualforce Page?

There are three steps to add Lightning components to a Visualforce page, they are as follows:

  1.  Add the <apex:includeLightning /> component to your Visualforce page
  2. Reference a Lightning app that declares your component dependencies with $Lightning.use()
  3. Write a function that creates the component on the visualforce page with $Lightning.createComponent()
<apex:page standardController= Account
        <apex:includeLightning />
        <div id= AcountDiv  />
         <script>
            $Lightning.use( c:LightningApp , function() {

                $Lightning.createComponent(
                     c:AccForm ,
                    {},
                     Accs ,
                    function(cmp) {
                        
                        console.log(cmp);
                    });

                });
          </script>
</apex:page>


 




Next 5 interview question(s)

1
What are the type of events into Salesforce Lightning component?
2
What are the different Lightning component bundles?
3
What is JSON ?
4
What are methods in REST?
5
How to cover the code for a batch class?