and used ui-sref and then it works. But I don’t want to put challenge in a definition of state. This is because if the value of challenge params changed, Ionic makes the animation of views which I don’t want. I would like to manipulate the challenge value without changing the state.
I still don’t get it why on desktop this ng-href works and in the webview it doesn’t.
if you want to manipulate only a state parameter like challenge you can use the notify option of ui-router:
This will not reload the controller and not triggering the state-change events. -> no animation between that views.
Then i would do something like this:
use ng-click instead of ui-sref or ng-href
the function will do a state.go(); and set the notifiy flag to false.
After that you have to reexecute some code in your controller if needed -> like getting the new challenge id from stateParams and load data…