我试图在我的angular 2项目中使用Aframe。使用Aframe和Angular 2
我进口图书馆在我的index.html,但我仍然不能使用AFRAME指令,例如:
<a-scene>
<a-box color="red"></a-box>
</a-scene>
抛出错误:
Template parse errors:
'a-box' is not a known element:
1. If 'a-box' is an Angular component, then verify that it is part of this module.
我怎么能这样导入库到我的角2项目,并使用它的指令?
检查网络浏览器上的网络选项卡,并查看库是否已加载 –
前段时间我已经提出过类似的问题。检查出来,它可能会帮助你:http://stackoverflow.com/questions/42163088/cant-import-a-frame-into-component-angular2 –
谢谢@ d_z90!你有没有找不到命名空间'THREE'。错误?有什么我失踪? – TheUnreal