You need to sign in to do that
Don't have an account?
aks0011
Using Lightning Component in Visualforce Page : how to instantiate the aura attribute ?
Hi,
I'm using a lightning component in my vf page and somehow my use case is to create that component on page for multiple times and the app as well -> so now I want to make a new instance of a list type of aura attribute as per the component created in vf page.
<div class="slds-form-element">
<apex:variable var="idVal" value="{!0}"/>
<apex:repeat value="{!ReferenceObjects}" var="f">
<script>
$Lightning.use("c:LookupApp", function(){
$Lightning.createComponent("c:Lookup",{"objectName":"{!f}"},"{!idVal}",function(cmp){
console.log("entered");
});
});
</script>
<div id="{!idVal}"></div>
<apex:variable var="idVal" value="{!idVal+1}"/>
</apex:repeat>
</div>
so how can I instatiate the aura attribute so if anyone knows that how to achieve this then please let me know.
thanks in advance...... :)
I'm using a lightning component in my vf page and somehow my use case is to create that component on page for multiple times and the app as well -> so now I want to make a new instance of a list type of aura attribute as per the component created in vf page.
<div class="slds-form-element">
<apex:variable var="idVal" value="{!0}"/>
<apex:repeat value="{!ReferenceObjects}" var="f">
<script>
$Lightning.use("c:LookupApp", function(){
$Lightning.createComponent("c:Lookup",{"objectName":"{!f}"},"{!idVal}",function(cmp){
console.log("entered");
});
});
</script>
<div id="{!idVal}"></div>
<apex:variable var="idVal" value="{!idVal+1}"/>
</apex:repeat>
</div>
so how can I instatiate the aura attribute so if anyone knows that how to achieve this then please let me know.
thanks in advance...... :)