tabs.js 831 B

1234567891011121314151617181920212223242526272829303132
  1. (function (module) {
  2. module.controller('tabsCtrl', ["$scope","$http", "myService", "$ionicHistory", "$state", function ($scope,$http, myService, $ionicHistory, $state) {
  3. $scope.go = function(target) {
  4. // $ionicHistory.clearHistory();
  5. $state.go(target);
  6. };
  7. $scope.vm={
  8. };
  9. $scope.userMes = function(){
  10. /*var data={
  11. user_id:"111"
  12. };
  13. myService.userMes(data).then(function(result){
  14. },function(erro){
  15. });*/
  16. $scope.go("app.my")
  17. };
  18. $scope.myIndex = function(){
  19. /* myService.userMes().then(function(result){
  20. },function(erro){
  21. });*/
  22. $scope.go("app.home")
  23. };
  24. }]);
  25. })(angular.module('app.controllers'));