I have a project created with angular-cli
where I have installed aframe
via npm install aframe --save
, and when I try to import it in
Here is what you have to get it properly working in Angular2:
"scripts": [
"node_modules/aframe/dist/aframe-master.js"
],
Download the typings from https://github.com/devpaul/aframe-typings/blob/master/src/AFRAME.d.ts.
Reference the typings in your component with:
/// <reference path="../typings/AFRAME.d.ts" />
or install the typings globally in your tsconfig.json:
"files": [
"typings/AFRAME.d.ts"
]