text: angular.module('starter.controllers')
      .controller('ClientMenuCtrl',[
          '$scope','$state','$ionicLoading','UserData',
          function ($scope, $state,$ionicLoading,UserData) {
  
          $scope.user = UserData.get();
          $scope.logout = function () {
              UserData.set(null);
              $state.go('login');
          }
      }]);