Instantly share code, notes, and snippets.

Embed
What would you like to do?
/* 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