I have a problem with modal when opening it from a mobile … it shows the modal structure without the data from the local storage. N.B when opening it from PC browser it works perfectly …
app.js controller
// Open the modal
$scope.showTask = function() {
$scope.taskModal.show();
var offerId= event.target.id;
getOfferDetails(offerId);
};
the function called before.
function getOfferDetails(offerId){
var offers= JSON.parse(window.localStorage.getItem('offers'));
var offer= offers[offerId];
document.getElementById("headerBrandName").innerHTML=offer.brancheId.brandId.name;
document.getElementById("offerBrandName").innerHTML=offer.brancheId.brandId.name;
document.getElementById("brandLogo").src=offer.brancheId.brandId.logoLink;
document.getElementById("offerBrandDescription").innerHTML=offer.brancheId.brandId.description;
document.getElementById("offerImage").src=offer.pictureLink;
document.getElementById("offerNoOfLikes").innerHTML=offer.noOfLikes;
document.getElementById("offerDescription").innerHTML=offer.description;
}
am i missing something?!
Thanks for your help …