deeleman / learning-angular2

Code samples repository for the examples provided in "Learning Angular 2", published by Packt Publishing - THE BOOK COVERS UP TO RC.1 and hence is severely OUTDATED. PLEASE REFER TO THE LATEST EDITIONS INSTEAD.
https://www.packtpub.com/web-development/learning-angular-2
108 stars 59 forks source link

error regarding importing the component module into index.html in book #14

Closed cloverharvest closed 8 years ago

cloverharvest commented 8 years ago

TYPO.

In Ch:1's Hello Angular2!, Section: Putting it all together, the book 's code reads:

// Here we import the component module // with no file extension System.import ('built/hello-angular');

Please add opening script tag, like so:

   <script>
      System.import ('built/hello-angular');
    </script>

And "Hello Angular 2!" should display on the localhost:3000 page.

This took me a while to figure out, but it helped me put my self back on track.

Might be helpful to other readers too.

Looking forward to finish the book and build a pomodoro app. Thanks!

deeleman commented 8 years ago

Yep, just reviewed the code block and confirmed the issue. Thanks for noticing!

Please do not hesitate on opening a new issue if you stumble upon any other typo. Thanks in advance!