Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ({
- doInit: function(component, event, helper) {
- var action = component.get("c.getCurrentUser");
- action.setCallback(this, function(response) {
- var state = response.getState();
- if (state === "SUCCESS") {
- component.set("v.user", response.getReturnValue());
- console.log(component.get("v.user"));
- } else {
- console.log("Failed with state: " + state);
- }
- });
- $A.enqueueAction(action);
- },
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement