angularjs - How to remove sliding effect while moving one state to another in ionic? -


i trying move 1 view on button click> able move 1 one view second .but while moving start slide right left .i need stop sliding . mean need learn various type of way move 1 view using animation (left right or down or no animation or down up) .

check code here
http://goo.gl/q2k6mf

click preview button .and type "abw" , select "abw" row .it download data server , after move second view sliding why ? need stop sliding .

secondly downloading data in first controller .is there better way hit server or call webservice before moving second view ?

   $scope.rowclick=function(station){      $scope.search.stationcode=station.stationcode;      $scope.search.selected = true;               $ionicloading.show();             $http.get("http://caht.firstrail.com/fgrailapps/jservices/rest/a/departure?crscode="+ $scope.search.stationcode).then(function(data){                 $ionicloading.hide();                  $state.go('departuredashboard')                 console.log(data);             },function(error){                 $ionicloading.hide();                 alert("error"+error);             })    }  

actually need data on second view ? here code https://dl.dropbox.com/s/l2dtrxmnsurccxt/www.zip?dl=0

i don't know why want remove animation, sweet, here go.

app.config(function($stateprovider, $urlrouterprovider,$ionicconfigprovider){      $ionicconfigprovider.views.transition('none')           // rest of config     }) 

edit: second question: here code snippet how use resolve of ui-router

.state('statename',{    url:'/someurl',          resolve: {         resolveddata: function ($http) {           var result = $http.get(yoururlhere).success(function (data) {                           return data;                        }).error(function (err) {                           return err;                        });                           return result;                  }           }    })

and in controller , inject "resolveddata"


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -