Created
July 16, 2018 01:17
-
-
Save choudharymanish8585/07b297c33ddee4115d7c4e6a93aff6d3 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 base component's helper method to call Aura Method | |
helper.callServer(component, "c.getAccounts", | |
function(response){ | |
if(response){ | |
component.set("v.data", response); | |
//Calling showToast method of Base component | |
helper.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