Explorar el Código

push pages from menu instead of setting new root

Carsten Porth hace 5 años
padre
commit
ef2061d641
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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() {