Simple Angular 2 project fails 'Unexpected reserved word' -
i trying create simple angular2 project based on ng2do project. using quickstart , have following code...
<script src="js/quickstart/dist/es6-shim.js"></script> .... import {component, template, bootstrap, foreach} 'js/quickstart/angular2/angular2';
this gives me following error...
uncaught syntaxerror: unexpected reserved word
what missing?
don't know if helps have been having issues day realised because starting code script reference
<script src="app.js"> </script>
instead of using
<script> system.import('app'); </script>
hope helps using in tsconfig
{ "version": "1.5.0-beta", "compileroptions": { "target": "es6", "module": "amd", "declaration": false, "noimplicitany": false, "removecomments": true, "nolib": false, "preserveconstenums": true, "suppressimplicitanyindexerrors": true, "emitdecoratormetadata": true, "experimentaldecorators": true }, "filesglob": [ "./**/*.ts", "!./node_modules/**/*.ts" ], "files": [ "./main.ts", "./show-properties.ts", "./typings/angular2/angular2.d.ts", "./typings/es6-promise/es6-promise.d.ts", "./typings/rx/rx-lite.d.ts", "./typings/rx/rx.d.ts" ] }
Comments
Post a Comment