Files
NativeScript/apps/gallery-app/views/image.ts
2015-03-03 10:34:40 +02:00

10 lines
308 B
TypeScript

import fs = require("file-system");
import imageSource = require("image-source");
export function pageLoaded(args) {
var page = args.object;
var telerikLogo = imageSource.fromFile(fs.path.join(__dirname, "../res/telerik-logo.png"));
page.bindingContext = { imageSource: telerikLogo };
}