Posts

Showing posts from June, 2016

Include Lightning Component in Visualforce Page

Yes, it's possible now. We can put our Lightning Component inside Visualforce page, it would help us to combine features we have built using both VF and Lightning Component. Basically we have four steps to add lightning component to a Visualforce Page. Step 1: a) Create simple lightning aura application and make it global and extend ltng:outApp , now save this app as "MyLightningApp" <aura:application access="GLOBAL" extends="ltng:outApp"> b) Create a component and save it as "MyLightningCmp". <aura: component> Test - We are inside component now!! </aura:component> Step 2: Add a dependency to our application, The app uses the <aura:dependency> tag to indicate that it uses the standard Lightning component, such as ui:button and Custom Component in our case "MyLightningApp" Note: If the app is defined in your org (that is, not in a managed package), you can use the