【发布时间】:2016-02-22 07:32:04
【问题描述】:
我正在 angular2 中构建小型应用程序,并尝试使用 webstorm 修改文件以查看它是否在我的浏览器中更新。
我执行了以下操作,到目前为止没有出现任何错误:
npm i -g angular-cli
ng new ponyracer
ng serve (working on background)
在此文件中,我将“PonyRacer4566”更改为“dshbhs”,但浏览器中没有任何更新。
import {Component} from 'angular2/core';
@Component({
selector: 'ponyracer-app',
template: '<h1>PonyRacer4566</h1>'
})
export class PonyRacerApp {
}
【问题讨论】:
-
你检查过开发者工具 -> 控制台是否有任何错误?
标签: terminal npm angular angular-cli