What is the solution for back button

hi, I have problem with backbutton when I click back in chrome (ionic serve) it get white page , however I use windows.location to goback .

 <div id="logo" >
  <img src="img/logo.png" height="42"/>
<h1 class="title"></h1>
<div id = "back" >
  <button ng-click="myGoBack()" class="button button-clear" ><img src ="images/back.png" /></button>

and app.js

.config(function($stateProvider,$urlRouterProvider, $ionicConfigProvider){


    templateUrl: 'pages/home.html'


    templateUrl: 'pages/evaluation.html',
    controller: 'EvaluController'


        templateUrl: 'pages/services.html',
        controller: 'ServicesController'

and the back function is

 $scope.myGoBack = function() {
  $window.location.href = '#/';

I try also $ionicHistory it get same result …

Checkout http://ionicframework.com/docs/api/directive/ionNavBackButton/

The ion-nav-bar / ion-nav-back-button have everything you need. The angular-ui stateprovider does the right thing as long as the markup is correct.

Thank you svenissiomo but it still not working well .