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 (208) [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.