mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
13 lines
368 B
TypeScript
13 lines
368 B
TypeScript
import { EventData, Page, Utils } from '@nativescript/core';
|
|
import { HelloWorldModel } from './main-view-model';
|
|
|
|
export function navigatingTo(args: EventData) {
|
|
const page = <Page>args.object;
|
|
page.bindingContext = new HelloWorldModel();
|
|
|
|
// Testing setting window background color
|
|
// if (global.isIOS) {
|
|
// Utils.ios.setWindowBackgroundColor('blue');
|
|
// }
|
|
}
|