Header Nav Bar Hiding Menu Button


#1

Hi,
Buttons disappear when I try to access the main page from a page.
I did not understand why.

Thanks for your help.

page2 -> HomePage Navigate

sinav_sonuc_kapat(){
 		this.navCtrl.setRoot(HomePage);
 		this.navCtrl.popToRoot();
 	}

HomePage Header

<ion-header>
  <ion-navbar >
    <button ion-button menuToggle>
      <ion-icon name="menu"></ion-icon>
    </button>
    <ion-title>Anasayfa</ion-title>
  </ion-navbar>
</ion-header>
"dependencies": {
        "@angular/common": "4.1.3",
        "@angular/compiler": "4.1.3",
        "@angular/compiler-cli": "4.1.3",
        "@angular/core": "4.1.3",
        "@angular/forms": "4.1.3",
        "@angular/http": "4.1.3",
        "@angular/platform-browser": "4.1.3",
        "@angular/platform-browser-dynamic": "4.1.3",
        "@ionic-native/core": "3.12.1",
        "@ionic-native/splash-screen": "3.12.1",
        "@ionic-native/status-bar": "3.12.1",
        "@ionic/storage": "2.0.1",
        "cordova-android": "^6.2.3",
        "cordova-ios": "^4.4.0",
        "cordova-plugin-console": "^1.0.5",
        "cordova-plugin-crosswalk-webview": "^2.3.0",
        "cordova-plugin-device": "^1.1.4",
        "cordova-plugin-splashscreen": "^4.0.3",
        "cordova-plugin-statusbar": "^2.2.2",
        "cordova-plugin-whitelist": "^1.3.1",
        "ionic-angular": "3.5.0",
        "ionic-plugin-keyboard": "^2.2.1",
        "ionicons": "3.0.0",
        "rxjs": "5.4.0",
        "sw-toolbox": "3.6.0",
        "zone.js": "0.8.12"
    },




#2

Is this the code for back button ? Why are you setting root on page2 again ? Just do a navCtrl.pop()


#3

Because there are more pages between.

Home> Course List> Exam> Statistics> Close


#4

this.navCtrl.setRoot(HomePage);

where i want to past this code
pls help