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
18 lines
419 B
TypeScript
18 lines
419 B
TypeScript
import { topmost } from "tns-core-modules/ui/frame";
|
|
import { vm } from "./main-page-vm";
|
|
|
|
export function onNavigatingTo(args) {
|
|
console.log("---> [DEFAULT] onNavigatingTo");
|
|
args.object.page.bindingContext = vm;
|
|
}
|
|
|
|
export function tap(args) {
|
|
console.log("---> [DEFAULT] tap");
|
|
}
|
|
|
|
export function navigate(args) {
|
|
console.log("---> [DEFAULT] navigate");
|
|
|
|
topmost().navigate("other/other-page");
|
|
}
|