title: How can I use jQuery with Ionic 2?
body: <p>I have been given some JQuery code that I need to use with my ionic 2 project. How can I include it and the JQuery library?</p>
  
  <p>The code looks like this (this is just a part of it):</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>// on 'Left Down' button click:
  jQuery('body').on('click', '.left-down', function (e) {
    
   jQuery('body #top-scale').stop();
   jQuery('body .right-hand-weight').stop();
   jQuery('body .left-hand-weight').stop();
   //top of scale animation
   jQuery("body #top-scale").animate({
      transform: "rotate("+ setWeights(3,0) +"deg)"
   })
   
  
    //===rotate + reposition each weight *** 
    jQuery("body .right-hand-weight").animate({
      transform:"rotate("+ getWeights() +"deg) translateX("+getX("right")+"px,"+getY("right")+"px)"
     })
  
    jQuery("body .left-hand-weight").animate({
      transform:"rotate("+ getWeights() +"deg) translateX("+getX("left")+"px,"+getY("left")+"px)"
     })
  
    //console.log(getWeights());
  
    // set number value in weight 
    jQuery( "body .text-1" ).text( leftWeightPercentage );
  
  });</code></pre>
  </div>
  </div>
  </p>
  
  <p>I was thinking of putting a script src tag in the index.htm for the JQuery library and the jquery code file I have been given, but I can't work out how to import the code into my ionic 2 project.</p>