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

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

问题描述

我在同一个应用程序中添加了两个伪造查看器,但我使用的是 Angular Forge 查看器组件.所有模型仅在一个模型中加载.第二个查看器不工作.我认为问题是 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).

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

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