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"/>
</div>
<h1 class="title"></h1>
<div id = "back" >
  <button ng-click="myGoBack()" class="button button-clear" ><img src ="images/back.png" /></button>
</div>

and app.js

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

$ionicConfigProvider.views.swipeBackEnabled(false);
$stateProvider
  .state('home',{
    url:'/',

    templateUrl: 'pages/home.html'

  })
  .state('evalu',{
    url:'/evalu',

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

  })
  .state('services',{
    url:'/services',

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

and the back function is

 $scope.myGoBack = function() {
  //$ionicHistory.back();
  $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 .