mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
11 lines
357 B
TypeScript
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());
|
|
}
|