2016-12-05 61 views

回答

1

试试这个,

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

感谢答复,我有一个喷气问题如何加载后重新加载当前视图它 – Kaker