Back Button how to go to last page


#1

Hi,
I am new to angularjs and ionic and I got a question, if I make a back button with

<a class="button icon-left ion-chevron-left button-clear button-dark">Back</a>

how can I go to last page?
Thanks


#2

$window.history.back();