Created
September 1, 2015 18:18
-
-
Save karanrajs/a2d93f0e4f87fd10cf4f 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
getFitbitData : function(component) { | |
var action = component.get("c.getUserDetails"); | |
action.setCallback(this,function(response){ | |
var state = response.getState(); | |
if(state === 'SUCCESS'){ | |
var parseJson = JSON.parse(response.getReturnValue()); | |
component.set("v.User",parseJson.user); | |
}else if (state === "ERROR") { | |
console.log('Error'); | |
} | |
}); | |
$A.enqueueAction(action); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment