vkelman (54) [Avatar] Offline
#1
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 (215) [Avatar] Offline
#2
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.