I have added ng2-datetime module in my Angular 4 project.
Now problem I am facing with ng test.
Currently it throws error like below.
'Cannot find name 'jQuery'
'Cannot find name '$'
EDIT:
I did tried same way as most of answer below which is adding below lines in typings.d.ts
declare var jQuery: any;
declare var $: any;
this will start 'ng test' but it will throw error while making build using ng build --prod.
Cannot redeclare block-scoped variable 'jQuery'
Cannot redeclare block-scoped variable '$'
TIA
In index.html put
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>in a tag and declare this variables in the component.ts where you are using them