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