更新时间:2023-11-22 17:23:34
要使其在 Angular2 中正常工作,您必须具备以下条件:
Here is what you have to get it properly working in Angular2:
"scripts": [
"node_modules/aframe/dist/aframe-master.js"
],
通过以下方式引用组件中的类型:
Reference the typings in your component with:
/// <reference path="../typings/AFRAME.d.ts" />
或在您的 tsconfig.json 中全局安装类型:
or install the typings globally in your tsconfig.json:
"files": [
"typings/AFRAME.d.ts"
]