How to load two forge viewer in same application (Angular Forge Viewer component)

谁说胖子不能爱 提交于 2021-01-29 10:48:20

问题


I am adding two forge viewer in same application but I am using Angular Forge Viewer component. all model loads only in one model. second viewer not working. I think the issue is Angular Forge Viewer component is using same Id.


回答1:


Looks like that has to do with the same container being used with a fixed element ID rather than a named ViewChild (see here).

You can either modify the library to use named ViewChild or raise an issue on Github for the author to address this (Alan is very active keeping this library in good maintenance).



来源:https://stackoverflow.com/questions/58705180/how-to-load-two-forge-viewer-in-same-application-angular-forge-viewer-component

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!