android - Samsung S4 history.back not working for first time -


when user clicks cancel action in hybrid (angular js) application, first time history.back not working in application. if once press device button , try again works well.

i tried below possibilities

$window.history.back();  // normal window window.history.back();  , window.histroy.go(-1); return false;  // html onclick function <div ng-click="javascript:history.back()">back</div> <div ng-click="javascript:history.go(-1)">back</div> 

non of above solutions worked.


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -