ソースを参照

push pages from menu instead of setting new root

Carsten Porth 5 年 前
コミット
ef2061d641
1 ファイル変更1 行追加1 行削除
  1. 1 1
      app/src/app/app.component.ts

+ 1 - 1
app/src/app/app.component.ts

@@ -65,7 +65,7 @@ export class MyApp {
   }
 
   openPage(page) {
-    this.nav.setRoot(page.component);
+    this.nav.push(page.component);
   }
 
   logout() {