Created
November 2, 2018 21:22
-
-
Save choudharymanish8585/e4489cd940ffc7da6fc328fa0d38c39d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
getAllAccounts : function(component, helper) { | |
//Calling BaseJS method to call Aura Method | |
callServer(component, "c.getAccounts", | |
function(response){ | |
if(response){ | |
component.set("v.data", response); | |
//Calling showToast method of BaseJS | |
showToast({ | |
"title": "SUCCESS", | |
"type": "success", | |
"message": "Account details are loaded" | |
}); | |
} | |
}); | |
}, | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment