summaryrefslogtreecommitdiff
path: root/mobile-ns/app/gallery-page.ts
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-ns/app/gallery-page.ts')
-rw-r--r--mobile-ns/app/gallery-page.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/mobile-ns/app/gallery-page.ts b/mobile-ns/app/gallery-page.ts
new file mode 100644
index 0000000..517ac8a
--- /dev/null
+++ b/mobile-ns/app/gallery-page.ts
@@ -0,0 +1,7 @@
+import { EventData, Page } from '@nativescript/core'
+import { GalleryModel } from './gallery-view-model';
+
+export function navigatingTo(args: EventData) {
+ const page = <Page>args.object;
+ page.bindingContext = new GalleryModel();
+}