Open Frelseren opened 6 years ago
Refer: https://developer.salesforce.com/blogs/2018/04/lightning-container-component-building-components-with-react-angular-and-other-libraries.html https://medium.com/@ennoucas/salesforce-lightning-application-with-vue-js-and-webpack-part-2-af0071347274
You need to create a manifest.json with the below lines: { "landing-pages": [{ "path": "index.html", "apex-controller": "ApexController" }] }
@Frelseren : as @suryaiiit you can read the paragraph of my article talking about the manifest.json file . Unfortunately without it, Salesforce does not trigger callApex and does not throw any errors either...
Hey @ennoucas , how do I include the namespace along with the controller??
Hi @suryaiiit : I do it like that : "apex-controller": "namespace.ApexControllerName"
@ennoucas is callapex subject to Salesforce API limits?
Hello,
I tried to use the
callApex()
, both in your ApexController example and by myself in multiple environments.It never gets executed because
Visualforce
isundefined
.The example was updated four months ago, I'm wondering if it doesn't work anymore because of a Salesforce update. Is there a way to enable RemoteAction support for the Lightning Container?
Thank you!