import * as observable from 'tns-core-modules/data/observable' ; import * as pages from 'tns-core-modules/ui/page' ; import { HelloWorldModel } from './main-view-model' ; export function pageLoaded ( args ) { let page = < pages . Page > args . object ; page . bindingContext = new HelloWorldModel ( ) ; }