tabs.js 749 B

1234567891011121314151617181920212223242526272829
  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.myMes = function(){
  10. myService.myMes().then(function(result){
  11. },function(error){
  12. });
  13. $scope.go("app.my")
  14. };
  15. $scope.myIndex = function(){
  16. myService.myIndex().then(function(result){
  17. },function(error){
  18. });
  19. $scope.go("app.home")
  20. };
  21. }]);
  22. })(angular.module('app.controllers'));