My Angular2 website doesnt update using Angular2-cli


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';
    selector: 'ponyracer-app',
    template: '<h1>PonyRacer4566</h1>'
export class PonyRacerApp {
By : Stav Alfi


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:

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