One way could be to add a clock to start automatically whenever a file changes. For example, try adding the following to the package.json file:
{ "scripts": { "tsc": "tsc -p src -w" } }
As Quickstart for Angular 2 (literally) it is indicated that this will be activated when you open the terminal window in the root of the application folder and enter:
npm run tsc
The script sets the parameter for the compiler (-w) , so the compiler remains alive when it is complete. It monitors changes in .ts files and recompiles them automatically.
Given this, spit out simple .js files, you can use convenient tools to reload the page.
source share