Skip to content

Instantly share code, notes, and snippets.

@douglascayers
Last active December 30, 2018 03:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save douglascayers/01b9631a96ae7a3bc7cd2f2642ac4faf to your computer and use it in GitHub Desktop.
Save douglascayers/01b9631a96ae7a3bc7cd2f2642ac4faf to your computer and use it in GitHub Desktop.
/* controller.js */
({
onActionConfirmed: function(component, event, helper) {
helper.callServer();
})
/* helper.js */
({
callServer: function(component) {
var action = component.get("c.someApexMethod");
$A.enqueueAction(action);
}
})
/* renderer.js */
({
afterRender: function(component, helper) {
this.superAfterRender();
helper.callServer();
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment