Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229726

Add an "entry" page without the Tabs of the template

$
0
0

@Sheepish I can't reproduce what I did yesterday.
login.ts
import { Component, ViewChild } from '@angular/core';

import { Nav } from 'ionic-angular';
import { TabsPage } from '../tabs/tabs';

@Component({
selector: 'page-login',
templateUrl: 'login.html'
})
export class Login {

 @ViewChild(Nav) nav: Nav;
 constructor() { }

 goToTabs(){
  this.nav.setRoot(TabsPage);
 }
}

login.html

  <h2>Login</h2>
  [...]
<button ion-button (click)="goToTabs()">test</button>
</ion-content>

Viewing all articles
Browse latest Browse all 229726

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>