Files
NativeScript/tests/app/ui/test-pages/bindingExpressions_arrayAccess_testPage.ts
2020-01-17 15:12:28 +02:00

9 lines
298 B
TypeScript

import * as pages from "@nativescript/core/ui/page";
export function pageLoaded(args) {
var strArr: string[] = ["tests", "bindings", "tests"];
var numArr: number[] = [-1, 0, 1];
var page = <pages.Page>args.object;
page.bindingContext = { strArray: strArr, numArray: numArr };
}