AngularJs: Reload page

前端 未结 13 2154
孤城傲影
孤城傲影 2020-11-28 19:28
PORTAL_NAME

I want to reload the page. How can I do this?

13条回答
  •  感情败类
    2020-11-28 19:54

    It's easy enough to just use $route.reload() (don't forget to inject $route into your controller), but from your example you could just use "href" instead of "ng-href":

    PORTAL_NAME
    

    You only need to use ng-href to protect the user from invalid links caused by them clicking before Angular has replaced the contents of the {{ }} tags.

提交回复
热议问题