How to get jquery ui date picker working with angular2?
I'm using angular2 and typescript with html5.
I'm trying to add the jquery ui datepicker.
I have all the librarys and the css added but the datepicker jquery code is wiring up to the html.
lib: https://jqueryui.com/datepicker/
Heres my code:
<script>
$(function() {
$( "#datepicker" ).datepicker();
});
</script>
<p>Date: <input type="text" id="datepicker"></p>
I've tried putting this in my component : $( "#datepicker" ).datepicker(); But I just get errors.
any ideas?
I get this error when I add the project to mine: