mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 05:18:39 +08:00

* chore(tslint): fix tslint config & errors * chore(tslint): enable double quotes, whitespace, and arrow-return-shorthand rules and fix errors
12 lines
379 B
TypeScript
12 lines
379 B
TypeScript
import { Label } from "tns-core-modules/ui/label";
|
|
import { Observable } from "tns-core-modules/data/observable";
|
|
import { Page } from "tns-core-modules/ui/page";
|
|
|
|
export function loaded(args) {
|
|
(<Observable>(<Label>args.object).page.bindingContext).set("testPassed", true);
|
|
}
|
|
|
|
export function onNavigatingTo(args) {
|
|
(<Page>args.object).bindingContext = args.context;
|
|
}
|