首页 > 解决方案 > Angular 2 - scrollPositionRestoration:“启用”不适用于每个组件

问题描述

我的问题是在单击和更改路线时,屏幕从底部开始。然后,我已将其添加到我的 app.module.ts 中。

RouterModule.forRoot(AppRoutes, { scrollPositionRestoration: 'enabled', })

我在我的一些组件中使用 Apexcharts.js。那些没有图表的人工作顺利,其他人没有......

尝试了很多东西,但结果是一样的。

标签: angularapexcharts

解决方案


推荐阅读