This is what im trying to do.... Both are from my local storage...my "updateProfile" is triggered to "true" when i click on the button to update my form. I tried adding "updateProfile.memberData", but it was not being included when i pass it in my "update" var.
update = {
JSON.parse(localStorage.getItem('memberData')),
'updateProfile' = true,
}
I have to then pass the update to the server:
$http.post(ConfigCnst.restUrl, JSON.stringify(update)).then(function(res)
But i seem to be getting an "Uncaught SyntaxError: Unexpected token ."