AngularJS ui-router: force reload

前端 未结 5 1253
执笔经年
执笔经年 2020-12-30 00:59

I have an AngularJS app starting at index.html and using ui-router. Based on a trigger I want to reload the complete page. I tried:

$state.go($state.current,         


        
5条回答
  •  情深已故
    2020-12-30 01:43

    The current trick is:

    $state.go($state.current.name, $state.params, { reload: true });

提交回复
热议问题