2016-05-11 11 views
0

Ich schreibe ein Angular2 2.0.0-beta.17 App. Ich denke, ich schließe die verschiedenen Polyfills und Shim für angular2 in der falschen Reihenfolge ein. Leider ist das Dokument für diese Version von eckig nicht mehr vorhanden, ersetzt durch das doc für rc.1. Ich möchte jetzt nicht zu rc.1 wechseln. Wissen Sie oder erinnern Sie sich an die genaue Reihenfolge, in der diese Skripts geladen werden müssen. Eigentlich lade ich sie in der folgenden Reihenfolge:Genaue Skript-Reihenfolge für Angular2 2.0.0-beta.17

<!-- IE required polyfills, in this exact order --> 
    <script src="node_modules/es6-shim/es6-shim.min.js"></script> 

    <script src="node_modules/systemjs/dist/system-polyfills.js"></script> 
    <script src="node_modules/systemjs/dist/system.js"></script> 

    <script src="node_modules/rxjs/bundles/Rx.min.js"></script> 

    <!-- angular2 bundle--> 
    <script src="node_modules/angular2/es6/dev/src/testing/shims_for_IE.js"></script> 
    <script src="node_modules/angular2/bundles/angular2-polyfills.min.js"></script> 
    <script src="node_modules/angular2/bundles/angular2.min.js"></script> 
    <script src="node_modules/angular2/bundles/http.min.js"></script> 
    <script src="node_modules/angular2/bundles/router.min.js"></script> 

Mit diesem Auftrag der Anwendung noch nicht mit IE8 und Safari funktioniert

Dank!

Antwort

0

, dass die Reihenfolge der beta17 Quickstart-Projekt ist:

<!-- IE required polyfills, in this exact order --> 
    <script src="node_modules/es6-shim/es6-shim.min.js"></script> 
    <script src="node_modules/systemjs/dist/system-polyfills.js"></script> 
    <script src="node_modules/angular2/es6/dev/src/testing/shims_for_IE.js"></script> 

    <script src="node_modules/angular2/bundles/angular2-polyfills.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> 
    <script src="node_modules/angular2/bundles/router.dev.js"></script> 
    <script src="node_modules/angular2/bundles/http.dev.js"></script>