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

仅有的幸福
仅有的幸福

reply all(1)
仅有的幸福

Just like js operation, normal page refresh

<script>
function myrefresh(){
window.location.reload();
}
setTimeout('myrefresh()',1000); //Specify refresh once every second
</script>

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template