angular - Angular 2 - scrollPositionRestoration:“启用”不适用于每个组件
问题描述
我的问题是在单击和更改路线时,屏幕从底部开始。然后,我已将其添加到我的 app.module.ts 中。
RouterModule.forRoot(AppRoutes, { scrollPositionRestoration: 'enabled', })
我在我的一些组件中使用 Apexcharts.js。那些没有图表的人工作顺利,其他人没有......
尝试了很多东西,但结果是一样的。
解决方案
推荐阅读
- c# - 如何将datagridview中的光标移动到同一行单元格的下一行?
- docker - 让 gitlab-ci 运行器在 docker 上运行,使用主机上的 shell 执行器
- c# - C#dependency_OnChange 需要确定它来自哪里?
- curl - 使用 cURL 从 Google Drive REST API 下载受限文件
- oracle - 通过 ORDS 解析“复杂”geojson
- python - 有人可能知道这个 Python 中的 Web Scraping
- javascript - 如何正确使用 clearInterval
- typescript - NestJS - 测试 @Inject('Value') 依赖
- scala - 系统未在 GKE 上 docker 的 scala 应用程序中终止
- python - 带有事务的 Pandas to_sql