Я следую инструкциям Nativescript здесь по боковой навигации. Я могу перейти к ChildA и ChildB из родительского компонента, но при переходе от ChildB к ChildB-A он не будет перемещаться и ничего не ответит.
Я не уверен, является ли эта реализация правильной для дочерней навигации, пожалуйста, советуйте об этом.
Структура навигации:
Parent
-> ChildA (Working)
-> ChildB (Working)
-> ChildB-A (Not Working)
Parent.module.ts:
NativeScriptRouterModule.forChild([
{ path: "", redirectTo: "parent", pathMatch: "full" },
{ path: "parent", component: ParentComponent, },
{ path: "childA", component: ChildAComponent },
{ path: "childB", component: ChildBComponent },
{ path: "chihildBA",component: ChildBAComponent }
])
Parent.component.ts:
goToChildA() {
this.routerExtensions.navigate(['../childA'], { relativeTo: this.activatedRoute }); //Working
}
goToChildB() {
this.routerExtensions.navigate(['../childB'], { relativeTo: this.activatedRoute }); //Working
}
ChildB. component.ts (при нажатии и выполнении goToChildBA ничего не происходит)
goToChildBA() {
this.routerExtensions.navigate(['../childBA'], {relativeTo: this.activatedRoute}); //Not Working
}