如何在同一应用程序中加载两个Forge Viewer(Angular Forge Viewer组件) [英] How to load two forge viewer in same application (Angular Forge Viewer component)

查看:46
本文介绍了如何在同一应用程序中加载两个Forge Viewer(Angular Forge Viewer组件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在同一应用程序中添加了两个伪造查看器,但我使用的是Angular Forge Viewer组件.所有模型仅在一个模型中加载.第二个查看器不起作用.我认为问题是Angular Forge Viewer组件正在使用相同的ID.

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.

推荐答案

类似方案与使用固定元素ID而不是命名ViewChild的同一个容器有关(请参阅

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

您可以修改该库以使用名为ViewChild的库,也可以在Github上向作者提出一个问题以解决此问题(Alan非常积极地保持该库的良好维护).

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).

这篇关于如何在同一应用程序中加载两个Forge Viewer(Angular Forge Viewer组件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆