I have installed jquery and jquery types and also tested the inclusion of jquery, by simply implementing a jquerys click function. The problem is that i am unable to call datepicker function. Here is the plunker link: http://plnkr.co/edit/3meCZf3Myg4VGzKv5x3u?p=preview This is how i have called datepicker in my component,
ngOnInit() {
$(function() {
(<any>$( ".datepicker" )).datepicker();
});
$(".datepicker" ).change(()=>{
let startDate = $( "#startdate" ).val();
let endDate = $( "#enddate" ).val();
this.singleFilmEventFormService.formGroup.patchValue({
startDate: startDate,
endDate: endDate
});
});
}
The angular is complaining that TypeError: $(...).datepicker is not a function
jqueryand@types/jquery?