Overwrite echo in iconic app
I need to store data in a localstorage as a json format
then I need to overwrite this data in service's code
I want to set this json data before service call
How will I set json data as echo for service call
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
I need to store data in a localstorage as a json format
then I need to overwrite this data in service's code
I want to set this json data before service call
How will I set json data as echo for service call
Hello Amirul,
Appery.io doesn't have such default functionality. So we are very sorry, but this is something outside the scope (https://docs.appery.io/docs/general-s...) of our standard support.
1.Apperyio.get("getArticles")(requestData).then(
function(success){ // success callback
(function mapping1717(success, $scope){
Code: Select all
success = JSON.parse(localStorage.getItem("articles"));
OR
2.
$timeout(function() {
try {
var service = Apperyio.EntityAPI('getArticles'),
echo = service.echo,
defaults = service.request.data,
request,
response;
Code: Select all
$articlesData = localStorage.getItem("articles");
echo = $articlesData;
I fix this