【发布时间】:2017-08-21 01:58:50
【问题描述】:
我试图在重新单击链接后重新加载 Angular2 子组件。
//Component
public clickedLink(event) {
// should reload the page before doing stuff
//.. doing something ..
}
我尝试了 ChangeDetectorRef 和 Application.tick(),但它们似乎不起作用。
【问题讨论】:
-
window.reload()呢? -
它将带回父组件。我在子组件中
-
你想达到什么目的?重新单击链接后通常不需要重新加载组件?
标签: angular angular-ui-router reload angular2-changedetection