我正在开展Angular项目.我正在努力应对组件中的刷新操作. 我想在按钮点击时刷新路由器的组件.当我点击它时,我有刷新按钮需要刷新组件/路由器. 我试过window.location.reload(),location.reload()这两个不适合我的需要.如果有人知道,请帮忙.
window.location.reload()
location.reload()
components routes refresh angular
angular ×1
components ×1
refresh ×1
routes ×1