How to Load multiple angular2 components from different folders in one index.html file?
问题 I have developed few angular 2 components. the directory structure for my application is following. and I am loading each component from index.html as <script> System.config({ map: { 'rxjs': 'node_modules/rxjs' }, packages: { app: { format: 'register', defaultExtension: 'js' }, 'rxjs': {defaultExtension: 'js'} } }); System.import('component_1/app/main') .then(null, console.error.bind(console)); </script> what I have done is , there must be only one index.html and according to the path