AngularJs UI-Router - Page Refresh $state.current is now empty
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have an Angular application using ui-router and I am having issues whenever I refresh the page. I am using nested views, named views to build the application. Whenever I refresh the page, ui-router doesn't reload the current state and just leaves the page blank. On page load $state.current is equal to Object {name: "", url: "^", views: null, abstract: true} I am reading my navigation from a .json file via $http and looping through the states. So this is what I can show: stateProvider.state(navElement.stateName, { url: navElement.regexUrl ?