(function (module) { module.controller('tabsCtrl', ["$scope","$http", "myService", "$ionicHistory", "$state", function ($scope,$http, myService, $ionicHistory, $state) { $scope.go = function(target) { // $ionicHistory.clearHistory(); $state.go(target); }; $scope.vm={ }; $scope.userMes = function(){ /*var data={ user_id:"111" }; myService.userMes(data).then(function(result){ },function(erro){ });*/ $scope.go("app.my") }; $scope.myIndex = function(){ /* myService.userMes().then(function(result){ },function(erro){ });*/ $scope.go("app.home") }; }]); })(angular.module('app.controllers'));