2016-08-22 4 views
0

私はngbook2を読みました。そして、私はangular2でhello-worldアプリケーションを作成しようとします。/node_modules/angular_2/bundles/angular2.dev.jsを修正する方法が見つかりません(404)

しかし、私はエラー404を取得:404 5.460ミリ/node_modules/angular2/bundles/angular2.dev.js

GET - 58

app.ts:

import { bootstrap } from "@angular/platform-browser-dynamic"; 
import { Component } from "@angular/core"; 

@Component({ 
    selector: 'hello-world', 
    template: ` 
     <div> 
     Hello world 
     </div> 
     ` 
}) 

class HelloWorld { 


} 

bootstrap(HelloWorld); 

のindex.htmlを:問題のような

<!doctype html> 
<html> 
    <head> 
     <title>Angular 2 - Simple Reddit</title> 
     <!-- Libraries --> 
     <script src="node_modules/es6-shim/es6-shim.js"></script> 
     <script src="node_modules/systemjs/dist/system.src.js"></script> 
     <script src="node_modules/rxjs/bundles/Rx.js"></script> 
     <script src="node_modules/angular2/bundles/angular2.dev.js"></script> 

     <!-- Stylesheet --> 
     <link rel="stylesheet" type="text/css" href="resources/vendor/semantic.min.css"> 
     <link rel="stylesheet" type="text/css" href="styles.css"> 

    </head> 
    <body> 

    <script src="resources/systemjs.config.js"></script> 
    <script> 
     System.import('app.js') 
      .then(null, console.error.bind(console)); 
    </script> 

    <hello-world></hello-world> 

    </body> 
</html> 

ルックはライン

であります

しかし、私は角張っていて、この行を修正する方法については考えていません。

どうすればこのアプリを修正できますか?

答えて

1

私はdocumentation

を読んでいると私は私がこれらにindex.htmlの中のライブラリのURLを変更する必要があります参照してください。

<!-- Libraries --> 
<!-- Polyfill(s) for older browsers --> 
<script src="node_modules/core-js/client/shim.min.js"></script> 
<script src="node_modules/zone.js/dist/zone.js"></script> 
<script src="node_modules/reflect-metadata/Reflect.js"></script> 
<script src="node_modules/systemjs/dist/system.src.js"></script> 
関連する問題