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