I am in the process of developing an application using the Ionic framework. I am able to upload files to the server and receive a response, which I then save the file name in localstorage. However, I am facing an issue where I need to display this value in a textbox named 'filename' once it is saved in localstorage. Can anyone guide me on how to achieve this?
function win(r) {
//alert("Response =" + r.response);
window.localStorage.setItem("picture",r.response)
{$ionicLoading.hide();}
$scope.filename = localStorage.getItem('picture');
//console.log("Code = " + r.responseCode);
//console.log("Response = " + r.response);
//console.log("Sent = " + r.bytesSent);
}
HTML
<label class="item item-input item-stacked-label">
<span class="input-label">Fashion Line</span>
<input name="filename" type="text" id="filenaname" ng-model="filename" >
</label>