title: Angular 2: How to execute javascript code that manipulates the DOM from a template?
body: <p>Is it possible to execute javascript code that accesses the DOM from within a template ?</p>
  
  <p>For example, I have a canvas and I want to draw an image on it (after load), I want to do what is done on the following page, but from Angular 2 land:
  <a href="http://www.html5canvastutorials.com/tutorials/html5-canvas-image-size/" rel="nofollow">http://www.html5canvastutorials.com/tutorials/html5-canvas-image-size/</a></p>