2017-06-02 77 views
-1
的NodeJS

This is my file directory整合angular2與

我想angular2與整合的NodeJS。但是index.js無法找到index.html文件。有人可以幫助我嗎?(PS。我是一個完整的初學者)。

index.js file

下面是我的index.html文件中的代碼。(該文件無法加載)

 <title>Hello World</title> 
    <script src="https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.33.3/es6-shim.min.js"></script> 
    <script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.20/system-polyfills.js"></script> 
    <script src="https://code.angularjs.org/2.0.0-beta.6/angular2-polyfills.js"></script> 
    <script src="https://code.angularjs.org/tools/system.js"></script> 
    <script src="https://code.angularjs.org/tools/typescript.js"></script> 
    <script src="https://code.angularjs.org/2.0.0-beta.6/Rx.js"></script> 
    <script src="https://code.angularjs.org/2.0.0-beta.6/angular2.dev.js"></script> 
    <script> 
     System.config({ 
     transpiler: 'typescript', 
     typescriptOptions: { emitDecoratorMetadata: true }, 
     packages: {'app': {defaultExtension: 'ts'}}, 
     map: { 'app': './app' } 
     }); 
     System.import('app/hello_world_main') 
      .then(null, console.error.bind(console)); 
    </script> 
    </head> 
<body> 
    <my-app>Loading...</my-app> 
</body> 

+1

請將代碼添加到問題中的index.js中。 – gmuraleekrishna

+0

index.js是一個屏幕截圖 –

+0

您的圖片文字[不是很有幫助](// meta.unix.stackexchange.com/q/4086)。它不能被朗讀或複製到編輯器中,而且它的索引也不是很好,這意味着具有相同問題的其他用戶不太可能在此找到答案。請[編輯]您的文章直接合並相關文本(最好使用複製+粘貼以避免轉錄錯誤)。 –

回答