如何导航到 Nativescript 中的另一个组件?



我有一个函数,它上传图像,我想在结束这个函数后导航到下一个组件。在app-routing.module.ts中,我进行了必要的配置,但我不知道如何进行导航。

听起来你在使用角度。

import { RouterExtensions } from 'nativescript-angular/router';
// ...
constructor(private routerEx: RouterExtensions) {
}
yourFunction(): void {
// do your stuff
this.routerEx.navigate(['your route']);
}

最新更新