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

Generated back button click event

$
0
0

this is right solution but there error will occur if u put the ‘navbar’ what u have to do is

 @ViewChild(Navbar) navBar: Navbar;

 
  ionViewDidLoad() {
    this.navBar.backButtonClick = (e:UIEvent)=>{
     // console.log("in");

      this.backbutton()  };
}

if u notice i removed the ‘’ from the @ViewChild(‘navbar’) where i became @ViewChild(Navbar) navBar: Navbar;


Viewing all articles
Browse latest Browse all 230796

Trending Articles



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