Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 516 Bytes

File metadata and controls

18 lines (13 loc) · 516 Bytes

Angular2 Canvas Experiment

Can an angular2 renderer render HTML into canvas output?

NOTE: EXPERIMENTAL

This is just a proof of concept to showcase the upcoming rendering capabilites of Angular2.

install

  1. install NodeJS, NPM. Then install typescript, typings and http-server (via npm)
  2. npm install
  3. typings install
  4. Run tsc
  5. Run http-server -p 8080
  6. Open localhost:8080/src to see the output

Renderer Code

Have a look in src/app.ts to see how the CanvasRenderer is implemented.