我有一个从index.html开始并使用ui-router的AngularJS应用程序。根据一个触发器,我想重新加载整个页面。我尝试过:
$state.go($state.current, $stateParams, {
reload: true,
inherit: false,
notify: true
});
但是那样做不起作用。它没有重新加载我的初始index.html。
我可以这样做:
window.location.href = "index.html";
但我现在在初始页面,而不是当前状态页面。
如果我将window.location.href
设置为带有指定当前位置的查询字符串参数的index.html
,我该如何导航到此位置?