title: How to use jQuery with javascript in angular 2
body: <pre><code>    import {Component, ElementRef, OnInit} from 'angular2/core';
      declare var jQuery:any;
      @Component({
        selector: 'jquery-integration',
        templateUrl: './components/jquery-integration/jquery-integration.html'
      })
      export class JqueryIntegration implements OnInit {
        elementRef: ElementRef;
        constructor(elementRef: ElementRef) {
          this.elementRef = elementRef;
        }
        ngOnInit() {
          jQuery(this.elementRef.nativeElement).draggable({
          containment:'#draggable-parent'
        });
      }
    }
  </code></pre>
  
  <p>Can jQuery be used with TypeScript in Angular2 like the above? How do I use jQuery with JavaScript in Angular2?</p>