import { EventData , Page } from "@nativescript/core" ; import { HelloWorldModel } from "./main-view-model" ; const model = new HelloWorldModel ( ) ; export function pageLoaded ( args ) { let page = < Page > args . object ; page . bindingContext = model ; }