title: How to use / include fabricjs in Angular2
body: <p>I want use fabricjs in my project. I installed fabricjs using bower and linked in index.html. but it is not working. Please see the below code.</p>
  
  <p>index.html</p>
  
  <pre><code>&lt;html&gt;
  
  &lt;head&gt;
   &lt;script&gt;document.write('&lt;base href="' + document.location + '" /&gt;');         &lt;/script&gt;
    &lt;title&gt;Image Editor&lt;/title&gt;
    &lt;meta charset="UTF-8"&gt;
    &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
    &lt;link rel="stylesheet" href="css/bootstrap/dist/css/bootstrap.min.css"&gt;
  
    &lt;!-- 1. Load libraries --&gt;
    &lt;!-- Polyfill(s) for older browsers --&gt;
    &lt;script src="libs/core-js/client/shim.min.js"&gt;&lt;/script&gt;
    &lt;script src="libs/zone.js/dist/zone.js"&gt;&lt;/script&gt;
    &lt;script src="libs/reflect-metadata/Reflect.js"&gt;&lt;/script&gt;
    &lt;script src="libs/systemjs/dist/system.src.js"&gt;&lt;/script&gt;
  
    &lt;script src="css/jquery/dist/jquery.min.js"&gt;&lt;/script&gt;
    &lt;script src="css/bootstrap/dist/js/bootstrap.min.js"&gt;&lt;/script&gt;
    // incuding fabricjs here
    &lt;script src="../../bower_components/fabric.js/dist/fabric.min.js"&gt;&lt;/script&gt;
  
    &lt;!-- 2. Configure SystemJS --&gt;
    &lt;script src="systemjs.config.js"&gt;&lt;/script&gt;
    &lt;script&gt;
    System.import('app').catch(function(err){ console.error(err); });
      &lt;/script&gt;
  &lt;/head&gt;
  
  &lt;!-- 3. Display the application --&gt;
  
  &lt;body&gt;
       &lt;my-app&gt;Loading...&lt;/my-app&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>This is component file "stage.component.ts"</p>
  
  <pre><code>import {Component, OnInit} from '@angular/core';
  import { ActivatedRoute, Router} from '@angular/router';
  import { fabric } from 'fabric';
  import { ImageService } from '../services/image.service';
  
  declare var fabric:any;
   @Component({
     selector:'my-stage',
     styleUrls: ['./app/stage/stage.component.css'],
     templateUrl: './app/stage/stage.component.html',
   })
  
   export class StageComponent implements OnInit {
      title:string = 'Image Editor';
      imgpath: string = '';
       canvas:any = null;
  
     // fabric:any = null;
      constructor(
         private route: ActivatedRoute,
      ) {
      //  this.fabric = new fabric();
      }
  
    ngOnInit() {
  
       this.canvas = new fabric.Canvas('fstage', {
          isDrawingMode: true,
          selection: true
        });
    }
  }
  </code></pre>
  
  <p>I have search many reference but couldn't find out what is wrong with my. Please advice, thank you.</p>