I have directive which is site header with back button and I want on click to go back to the previous page. How do I do it in the angular way?
I have tried:
In case it is useful... I was hitting the "10 $digest() iterations reached. Aborting!" error when using $window.history.back(); with IE9 (works fine in other browsers of course).
I got it to work by using:
setTimeout(function() { $window.history.back(); },100);