The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

vkelman (54) [Avatar] Offline
Why is it good that our systemjs.config.js "allow app us to use the line <script>System.import('app')</script> in index.html, which will actually load the content of app/main.ts." (page 57, PDF) ?
Is it because we could then modify systemjs.config.js to map 'app' to some other TypeScript file without modifying index.html ?
Yakov Fain (219) [Avatar] Offline
Yes, and we do it in every chapter in the book, which have a single index.html and multiple apps. To run a particular sample app, you just need to change the mapping in systemjs.config.js.