We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d8cdbda + fddec92 commit 668d9ffCopy full SHA for 668d9ff
bundle-app-root.xml
@@ -1,2 +1,2 @@
1
-<Frame defaultPage="main-page" id="root-frame">
+<Frame defaultPage="bundle-main-page" id="root-frame">
2
</Frame>
bundle-main-page.ts
@@ -0,0 +1,6 @@
+import vmModule = require("./main-view-model");
+function pageLoaded(args) {
3
+ var page = args.object;
4
+ page.bindingContext = vmModule.mainViewModel;
5
+}
6
+exports.pageLoaded = pageLoaded;
bundle-main-page.xml
@@ -0,0 +1,7 @@
+<Page xmlns="http://www.nativescript.org/tns.xsd" loaded="pageLoaded">
+ <GridLayout cssClass="landingContainer">
+ <Image src="{{ imageSrc }}" stretch="none" cssClass="landingBackground"/>
+
+ <Label text="{{ serverInfo }}" cssClass="landingText"/>
+ </GridLayout>
7
+</Page>
0 commit comments