我是Angular2的新手(没有任何使用Angular1的经验),目前我在一个小网站上工作。我需要做的是非常直接的。在AppComponent的模板中,有两个用于选择语言的按钮。我还有一个路由,假设是/products,其中显示从WS (通过服务的http get )检索到的产品列表。当我按下某个语言按钮时,我需要刷新产品列表。我在ProductsService类中发出h
@viewChild in @injectable在Angular8中工作,但在Angular10中却没有工作,有什么原因吗?下面的代码是示例(下面是我现有代码的外观):export abstract class DetailBaseComponent * Reference to the child modal component @ViewChi