Skip to content

Instantly share code, notes, and snippets.

@simpluslabs
Created November 13, 2018 10:16
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 simpluslabs/4e03815c4a1ecd526753097b5259584d to your computer and use it in GitHub Desktop.
Save simpluslabs/4e03815c4a1ecd526753097b5259584d to your computer and use it in GitHub Desktop.
({
doInit : function(component, event, helper) {
var action = component.get("c.getContact");
action.setCallback(this, function(response) {
var state = response.getState();
if (state === "SUCCESS") {
component.set("v.contact", response.getReturnValue());
console.log(response.getReturnValue());
}
});
$A.enqueueAction(action);
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment