2015-01-13 19 views
13

Bu kod parçacığı aşağıda (iyonik çerçeve) var, ancak etrafta gezinirken routeChangeStart yazdırılmıyor. Ben iyonik çerçeve aşağıdaki gibi kodunu değiştirmek ve denemek yerine ngRoute..So ait ui-yönlendirici kullanıyorsanız inanıyoruzrouteChangeStart, rota değiştiğinde tetiklenmiyor

.run(function($ionicPlatform, $rootScope, $location) { 
    $ionicPlatform.ready(function() { 
    if (window.cordova && window.cordova.plugins.Keyboard) { 
     cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true); 
    } 
    if (window.StatusBar) { 
     StatusBar.styleDefault(); 
    } 
    }); 

    $rootScope.$on('$routeChangeStart', function(event, next, current) { 
    console.info('[event] routeChangeStart...'); 
    }); 
}) 

cevap

İlgili konular