Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. ({
  2. doInit: function(component, event, helper) {
  3. var action = component.get("c.getCurrentUser");
  4.  
  5. action.setCallback(this, function(response) {
  6. var state = response.getState();
  7. if (state === "SUCCESS") {
  8. component.set("v.user", response.getReturnValue());
  9. console.log(component.get("v.user"));
  10. } else {
  11. console.log("Failed with state: " + state);
  12. }
  13. });
  14. $A.enqueueAction(action);
  15. },
  16. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement