-
-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Hello, thnks for the plugin, i have this problem: i set the image from url, the first time i open the page it's everything ok, but when i reload the page it opens the previous image, i set also the src to empty string and then set it, but with no success. what can i try?
here is my code:
<Page loaded="loaded" xmlns:shared="shared" xmlns:nsDrawer="nativescript-ui-sidedrawer" xmlns:ui="nativescript-image-zoom"
>
<shared:actionbar></shared:actionbar>
<nsDrawer:RadSideDrawer id="sideDrawer" showOverNavigation="true">
<nsDrawer:RadSideDrawer.drawerContent>
<shared:side-drawer></shared:side-drawer>
</nsDrawer:RadSideDrawer.drawerContent>
<nsDrawer:RadSideDrawer.mainContent>
<GridLayout columns="*" rows="*">
<ui:ImageZoom col="0" row="0" src="{{ event.pictureUrl }}" maxZoom="5" minZoom="1"/>
</GridLayout>
</nsDrawer:RadSideDrawer.mainContent>
</nsDrawer:RadSideDrawer>
</Page>
var Observable = require("tns-core-modules/data/observable").Observable;
var moment = require('moment')
var LoadingIndicator = require("@nstudio/nativescript-loading-indicator").LoadingIndicator;
var loader = new LoadingIndicator();
moment.locale('it');
var pageData = new Observable();
var page;
exports.loaded = function (args) {
loader.show();
page = args.object;
page.bindingContext = pageData;
var gotData = page.page.navigationContext;
pageData.set("event", []);
pageData.set("event", gotData.event);
loader.hide()
};
Metadata
Metadata
Assignees
Labels
No labels