angular - Import unable to locate angular2 in beta.1 -
the sample code found in angularjs 2.0 getting started visual studio works alpha.28 version. when change scripts from
<script src="https://github.jspm.io/jmcriffey/bower-traceur-runtime@0.0.87/traceur-runtime.js"></script> <script src="https://jspm.io/system@0.16.js"></script> <script src="https://code.angularjs.org/2.0.0-alpha.28/angular2.dev.js"></script>
to
<script src="https://github.jspm.io/jmcriffey/bower-traceur-runtime@0.0.87/traceur-runtime.js"></script> <script src="http://cdnjs.cloudflare.com/ajax/libs/systemjs/0.18.4/system.src.js"></script> <script src="https://code.angularjs.org/2.0.0-beta.1/angular2.js"></script>
i error says "[local server]/angular2/angular2" not found.
what has changed since , how configure angular2 imported cdn?
basically causing error app.ts file have component resides.
for importing component
, view
& bootstrap
old version has angular2/angular2
path
import {component, view, bootstrap} 'angular2/angular2';
everyone knows day day angular2 api has changed rapidly.
so per current version need angular2/core
importing component, view
& bootstrap
should imported angular2/platform/browser
js
import {component, view} 'angular2/core'; import {bootstrap} 'angular2/platform/browser'; import {ngfor} 'angular2/common'; //common things there in common module
other rx
jx component has been moved out angular2.dev.js
, if have code related need include rx.js
separately in app.
also need include angular2-polyfills.js
& es6-shim.js
js files enable support older application.
Comments
Post a Comment