From fddec92f53c221b6e6aa50714fb1b81e1a064ed2 Mon Sep 17 00:00:00 2001 From: fatme Date: Thu, 21 Mar 2019 10:36:13 +0200 Subject: [PATCH] fix: add bundle-main-page.ts and bundle-main-page.xml in order to work correctly with `ts` project --- bundle-app-root.xml | 2 +- bundle-main-page.ts | 6 ++++++ bundle-main-page.xml | 7 +++++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 bundle-main-page.ts create mode 100644 bundle-main-page.xml diff --git a/bundle-app-root.xml b/bundle-app-root.xml index bccd573..40ea463 100644 --- a/bundle-app-root.xml +++ b/bundle-app-root.xml @@ -1,2 +1,2 @@ - + diff --git a/bundle-main-page.ts b/bundle-main-page.ts new file mode 100644 index 0000000..5746bf8 --- /dev/null +++ b/bundle-main-page.ts @@ -0,0 +1,6 @@ +import vmModule = require("./main-view-model"); +function pageLoaded(args) { + var page = args.object; + page.bindingContext = vmModule.mainViewModel; +} +exports.pageLoaded = pageLoaded; diff --git a/bundle-main-page.xml b/bundle-main-page.xml new file mode 100644 index 0000000..a296115 --- /dev/null +++ b/bundle-main-page.xml @@ -0,0 +1,7 @@ + + + + + +