angularjs - refresh when clicked on link with actual url

后端 未结 10 1300
深忆病人
深忆病人 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:42

    you should use $route.reload() to force the reload.

    I don't know if is there a 'automatic' way to do this, but you can use ng-click on these links

提交回复
热议问题