2016-12-05 60 views

回答

1

試試這個,

app.run(function($rootScope, $templateCache) { 
    $rootScope.$on('$routeChangeStart', function(event, next, current) { 
     if (typeof(current) !== 'undefined'){ 
      $templateCache.remove(current.templateUrl); 
     } 
    }); 
}); 
+0

感謝答覆,我有一個噴氣問題如何加載後重新加載當前視圖它 – Kaker