Преглед изворни кода

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