mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
* chore: update project * refactor: clear module-name cache on orientation * feat: add custom component in qualifiers app * feat: enable HMR for custom components * refactor: remove redundant check * chore: clean console.log
17 lines
424 B
TypeScript
17 lines
424 B
TypeScript
import { topmost } from "tns-core-modules/ui/frame";
|
|
import { vm } from "./main-page-vm";
|
|
|
|
export function onNavigatingTo(args) {
|
|
console.log("---> [LANDSCAPE] onNavigatingTo");
|
|
args.object.page.bindingContext = vm;
|
|
}
|
|
|
|
export function tap(args) {
|
|
console.log("---> [LANDSCAPE] tap");
|
|
}
|
|
|
|
export function navigate(args) {
|
|
console.log("---> [LANDSCAPE] navigate");
|
|
|
|
topmost().navigate("other/other-page");
|
|
} |