Я пытаюсь интегрировать сцену three.js в страницу angular 2. Я новичок в Angular 2 и javascript, я включил файл three.js в тег script, в index.html, т.е. и в файле scene.component.ts у меня есть такой код...
//scene.component.ts
import { Component } from 'angular2/core';
import { THREE } from 'three-js/three';
@Component({
selector: 'ps-scene',
templateUrl: 'app/webgl/scene.component.html'
})
export class SceneComponent{
scene = new THREE.Scene();
}
///////////////
Проблема проявляется в строке - import {THREE} from 'three-js/three';
Это тот же путь к каталогу, что и «angular2/core».
Заранее спасибо.