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:
Or you can simply use javascript code :
onClick="javascript:history.go(-1);"
Like: