angularjs - refresh when clicked on link with actual url

后端 未结 10 1298
深忆病人
深忆病人 2020-12-02 10:13

I use routeProvider to define controlers and templates for my urls.

When I click on the link, which has the same url as is the actual location, nothing happens. I w

10条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-02 10:41

    For people who are using AngularUI Router. You can use something like this:

    State
    

    Notice the reload option.

    Found the answer here: https://stackoverflow.com/a/29384813/426840

提交回复
热议问题