So as a standalone, my lightning component works fine, I set on the component ( in the aura class impelements force:hasrecordid)
<aura:attribute name="recordId" type="Id" />
and in my controller have
({
getResponse : function(component) {
var action = component.get("c.getCalloutResponseContents");
action.setParams({
contactId: component.get("v.recordId")
});
this works great as a standalone lightning component
however when i attempt to use a lightning out app that uses a visual force page, it does not work
the visualforce page code is this
<apex:page >
<apex:includeLightning />
<div id="lightning" />
<script>
//Tell your Visualforce page to use ExposeVF Lightning app
$Lightning.use("c:wjrizzi_try3", function() {
// Write a function that creates the component on the page
$Lightning.createComponent("c:recent_giving",
{
"contactId" : recordId
},
"lightning",
function(cmp) {
// do some stuff
});
});
</script>
</apex:page>
i get the error: recordID not found
i have tried the following in the lightning use create component to try to get that variable, none have succeeded
contactId : "{!v.recordId}"
recordId : "contactId"
"recordId" : contactID
you get the picture
as always any help would be most appreciated