How to create a back button with url parameters?


#1

I try to create a back button using $ionicNavBarDelegate.back() in my application, but it’s cannot back with url parameters.

For example:

/demo/services?query=exam

when I use $ionicNavBarDelegate.back() , the page redirect to /domo/services , the url parameter has gone.

How to use $inoicNavBarDelegate.back() with parameters, or how to create a back button with parameters.


#2

Hi @kenticny,

I think, On click on back button you want history back. if yes…
use following code-

navigator.app.backHistory(); 

#3

Hi, @shashikant ,
I will try with your code,
thanks for you help.