Skip to content

Instantly share code, notes, and snippets.

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