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

19 lines
491 B
TypeScript

import { NavigatedData } from '@nativescript/core/ui/page';
import { Page } from '@nativescript/core/ui/page';
import { Observable } from '@nativescript/core/data/observable';
export class HomeViewModel extends Observable {
public stringValue = 'test';
public stringNumericValue = '12345';
public numericValue = 12345;
constructor() {
super();
}
}
export function onNavigatingTo(args: NavigatedData) {
const page = <Page>args.object;
page.bindingContext = new HomeViewModel();
}