浏览代码

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() {