【发布时间】:2016-05-18 16:53:29
【问题描述】:
我将用angular2和systemjs编写一个简单的hello word应用程序来在phpStorm中导入模块。
这是我项目的目录:
ProjectName
|--app
|--app.ts
|--app.js
|node_modules
|index.html
|package.json
|tsconfig.json
这是一段代码:
import { bootstrap } from "angular2/platform/browser";
import { Component } from "angular2/core";
问题:
它怎么知道在哪里可以找到这个文件?当我将 node_modules 移动到 app 文件夹时,出现了错误。
【问题讨论】:
标签: typescript angular systemjs