【发布时间】:2020-10-03 13:20:07
【问题描述】:
如果在Product 1 Component 之后单击Product 2 Component,则不会更新Product component 页面。我必须单击Hello Component,然后才单击Product 2 Component 以确保Product component 页面已更新为ID 号。
换句话说,Product 组件只有在我点击时才会更新:
-
Product 1 Component Hello ComponentProduct 2 Component
如何解决问题?这是 Stackblitz 项目:
https://stackblitz.com/edit/angular-ivy-insynj?file=src%2Fproduct%2Fproduct.component.ts
【问题讨论】:
标签: angular typescript components router