Files
NativeScript/apps/ui/app/screen-qualifiers/main-page.ts
Nathan Walker 1e6fccf272 chore: cleanup
2020-07-23 14:03:37 -07:00

11 lines
357 B
TypeScript

import { EventData } from '@nativescript/core/data/observable';
import { Observable } from '@nativescript/core/data/observable';
import { Page } from '@nativescript/core/ui/page';
export function pageLoaded(args: EventData) {
const page = <Page>args.object;
page.bindingContext = new Observable();
page.bindingContext.set('currentDate', new Date());
}