My Angular2 website doesnt update using Angular2-cli

Question!

Im building small app in angular2 and im trying to modify a file using webstorm to see if its updating in my browser.

I did the following and got no errors so far:

npm i -g angular-cli
ng new ponyracer
ng serve   (working on background)

In this file, I changed "PonyRacer4566" to "dshbhs" But nothing gets update in the browser.

import {Component} from 'angular2/core';
@Component({
    selector: 'ponyracer-app',
    template: '<h1>PonyRacer4566</h1>'
})
export class PonyRacerApp {
}
By : Stav Alfi


Answers

Do you see any message in the terminal when you update the file? Does it say that the file changed and the build was completed?

If you think that this is an issue on angular-cli you can file it on the official repository: github.com/angular/angular-cli.



I had to add these lines to my index.html in order to get this working;

By : Allan


This video can help you solving your question :)
By: admin