ng2-jspm
ng2-jspm copied to clipboard
DEPRECATED
Run Angular 2 app with jspm
-
npm install -g jspm live-server
-
jspm init
-
jspm install npm:reflect-metadata npm:zone.js npm:angular2
- Add to
config.js
"traceurOptions": { "annotations": true, "memberVariables": true, "types": true }
- Copy
index.html
andproj
folder. - Run
live-server
and observe the results.
Or just clone this repo and jspm install
.
Bundle project
jspm bundle-sfx --minify reflect-metadata + zone.js + proj/app build/bundle.js
Demo
http://htdt.github.io/ng2-jspm/build/
Hack
fetch()
is not triggering view update after data load and change.
jspm_packages/es6-module-loader.js
replacement with es6-module-loader-sans-promises.js
solves this problem.
Other examples
MIT License