title: Add paper package to Angular 2 application (VS 2015 update 3 project)
body: <p>I'm using asp.net MVC with Angular 2. (VS 2015 update 3).
  I want to use paper.js to draw something on canvas selector.</p>
  
  <p>What I did: </p>
  
  <ul>
  <li><p>install paper via npm and include it to project (in systemjs.config.js):</p>
  
  <pre><code>var map = {
  'app': 'angular-app', // 'dist',
  ...
  'paper/paper-full': 'npm:paper/dist/paper-full.min.js',
  ...
  };
  </code></pre></li>
  <li><p>import this js file to component with canvas:</p>
  
  <pre><code>import { Component } from '@angular/core';
  import 'paper/paper-full';
  import 'angular-app/app/paper-canvas/paper-functions';
  
  @Component({
     selector: 'paper-canvas',
     templateUrl: 'angular-app/app/paper-canvas/paper-canvas.component.html',
     styleUrls: ['angular-app/app/paper-canvas/paper-canvas.component.css']
     })
  export class PaperCanvasComponent {
  title = 'canvas here'
  }
  </code></pre></li>
  <li><p>my <code>angular-app/app/paper-canvas/paper-canvas.component.html</code>:</p>
  
  <pre><code>&lt;div class="well"&gt;
       &lt;h2&gt;{{title}}&lt;/h2&gt;
       &lt;canvas id="canvasArea"&gt;loading canvas&lt;/canvas&gt;
  &lt;/div&gt;
  </code></pre></li>
  <li><p>and add functionality to draw on canvas:</p>
  
  <pre><code> document.addEventListener('DOMContentLoaded', function () {
         alert('it works');
   });
  
   window.onload = function () {
        alert("in func");
        // Get a reference to the canvas object
        var canvas = document.getElementById('canvasArea');
        // Create an empty project and a view for the canvas:
        paper.setup(canvas);
        // Create a Paper.js Path to draw a line into it:
        var path = new paper.Path();
        // Give the stroke a color
        path.strokeColor = 'black';
        var start = new paper.Point(100, 100);
        // Move to start and draw a line from there
        path.moveTo(start);
        // Note that the plus operator on Point objects does not work
        // in JavaScript. Instead, we need to call the add() function:
        path.lineTo(start.add([200, -50]));
        // Draw the view now:
        paper.view.draw();
  }
  </code></pre>
  
  <p>All files loaded:
  <a href="https://i.stack.imgur.com/rpgAE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rpgAE.png" alt="see this image"></a></p></li>
  </ul>
  
  <p>As you can see I have loaded paper-full.js file and my file with draw function, but there no even alert I have.. 
  I tried to write my draw-function into <code>angular-app/app/paper-canvas/paper-canvas.component.html</code> like <code>paperscript</code> but it wasn't work too.</p>
  
  <p>Thank you for any help in advance.</p>