title: How to get jquery ui date picker working with angular2?
body: <p>How to get jquery ui date picker working with angular2?</p>
  
  <p>I'm using angular2 and typescript with html5.</p>
  
  <p>I'm trying to add the jquery ui datepicker.</p>
  
  <p>I have all the librarys and the css added but the datepicker jquery code is wiring up to the html.</p>
  
  <p>lib: <a href="https://jqueryui.com/datepicker/" rel="nofollow noreferrer">https://jqueryui.com/datepicker/</a></p>
  
  <p><strong>Heres my code:</strong></p>
  
  <pre><code>  &lt;script&gt;
    $(function() {
      $( "#datepicker" ).datepicker();
    });
    &lt;/script&gt;
  
    &lt;p&gt;Date: &lt;input type="text" id="datepicker"&gt;&lt;/p&gt;
  </code></pre>
  
  <p>I've tried putting this in my component :  $( "#datepicker" ).datepicker();
  But I just get errors.</p>
  
  <p>any ideas?</p>
  
  <p>I get this error when I add the project to mine:</p>
  
  <p><a href="https://i.stack.imgur.com/zKSy7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zKSy7.png" alt="enter image description here"></a></p>