Farata / angular2typescript

Code samples from the book Angular 2 Development with TypeScript
MIT License
440 stars 269 forks source link

Chapter 2 - Hello World TS - doesn't work #36

Closed vorant94 closed 4 years ago

vorant94 commented 4 years ago

I've tried to run this example from the book, and it failed. After that, I found your repository (thank you a lot by the way) and tried to run this time your code but got the same issue. I can go and read the rest of the book, but if it is possible I want also to run the simplest "hello world"... but I can't

Here is the screenshot of error when running it in browser screenshot

yfain commented 4 years ago

Please try to find a similar code sample in the repository for the newer edition of this book at https://github.com/Farata/angulartypescript

vorant94 commented 4 years ago

@yfain I can't find there examples of hello world's

yfain commented 4 years ago

We don't use SystemJS for loading modules anymore. That's why that version of HelloWorld was not included in the second edition. Simply compile the TypeScript code to JavaScript and include the compiled version in the file index.html.