ng2-jspm icon indicating copy to clipboard operation
ng2-jspm copied to clipboard

DEPRECATED

Run Angular 2 app with jspm

  1. npm install -g jspm live-server
  2. jspm init
  3. jspm install npm:reflect-metadata npm:zone.js npm:angular2
  4. Add to config.js
    "traceurOptions": {
      "annotations": true,
      "memberVariables": true,
      "types": true
    }
    
  5. Copy index.html and proj folder.
  6. 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