angular.js - When using ui-router in angular, how to refresh the data in non-ui-view parts?
仅有的幸福2017-05-15 17:09:51
0
1
569
I hope to be able to refresh the entire page and change the data in non-ui-view parts. I tried using ui-sref-opts="{reload:true}", but it did not refresh the entire page and could only refresh the ui-view part
Just like js operation, normal page refresh
<script>
function myrefresh(){
window.location.reload();
}
setTimeout('myrefresh()',1000); //Specify refresh once every second
</script>